package com.sg.service.biz.framework.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.base.framework.req.*;
import com.sg.dto.biz.framework.req.*;
import com.sg.dto.biz.framework.res.*;
import com.sg.service.biz.framework.ChangeColumnService;
import com.sg.service.biz.framework.OrgService;
import com.sg.service.biz.framework.PowerService;
import com.wicket.okrcomponent.integration.ConfSchemeService;
import com.wicket.okrcomponent.integration.InterfaceModeService;
import com.wicket.okrcomponent.integration.dto.*;
import com.sg.common.exception.Assert;
import com.wicket.okrframework.common.exception.BizException;
import com.wicket.okrframework.dal.po.mbg.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class InductionRecordServiceImpl
        implements com.wicket.okrframework.biz.service.InductionRecordService {

    @Resource
    private RedisUtil redisUtil;
    @Resource
    private MInductionRecordService mInductionRecordService;
    @Resource
    private MOriginalRoleMemberInfoService mOriginalRoleMemberInfoService;
    @Resource
    private MUserinfoService mUserinfoService;
    @Resource
    private MDeptService mDeptService;
    @Resource
    private MOriginalRoleMemberService mOriginalRoleMemberService;
    @Resource
    private NbInductionRecord nbInductionRecord;
    @Resource
    private MRoleMemberService mRoleMemberService;
    @Resource
    private MPositionService mPositionService;
    @Resource
    private MPositionGradeService mPositionGradeService;
    @Resource
    private MStationTypeService mStationTypeService;
    @Resource
    private MTypeDictionaryService mTypeDictionaryService;
    @Resource
    private MStationService mStationService;
    @Resource
    private MPostService mPostService;
    @Resource
    private MDeptPositionRelationshipService mDeptPositionRelationshipService;
    @Resource
    private MStaffingService mStaffingService;
    @Resource
    private MOrganizationService mOrganizationService;
    @Resource
    private ConfSchemeService confSchemeService;

    @Resource
    private ChangeColumnService baseChangeColumnService;
    @Resource
    private PowerService powerService;
    @Resource
    private ChangeColumnService changeColumnService;
    @Resource
    private MBatchService mBatchService;
    @Resource
    private InterfaceModeService interfaceModeService;
    @Resource
    private OrgService orgService;
    @Resource
    private MUsersService mUsersService;
//@Resource
    //private undefinedService undefinedService;
//@Resource
    //private MCustomFields2Service mCustomFields2Service;

    /**
     * D1-3查询就职记录列表(边界)[1343]
     * gen by moon at 9/21/2023, 11:59:04 PM
     */
    @Trace(operationName = "D1-3查询就职记录列表(边界)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryInductionRecordListBorderRespDto queryInductionRecordListBorder(QueryInductionRecordListBorderReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_1 = new ArrayList<>();
//步骤0: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        if (reqDto != null) {
            queryInductionRecordListReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:31291_1
            queryInductionRecordListReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:35476_1
            queryInductionRecordListReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:31293_1
            queryInductionRecordListReq.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1127110_1
            queryInductionRecordListReq.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:85148_1
            queryInductionRecordListReq.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:39791_1
            queryInductionRecordListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:31301_1
            queryInductionRecordListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:35486_1
            queryInductionRecordListReq.setArchivngType(reqDto.getArchivngType());//SimpleFieldAssign//sourceId:35975_1
            queryInductionRecordListReq.setIsTransaction(reqDto.getIsTransaction());//SimpleFieldAssign//sourceId:51220_1
            queryInductionRecordListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:31302_1
        }

        /*1-3-13查询就职记录列表[166]   */

        listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

//步骤1: 1-2-10批量查询身份人员资料列表 - batchQueryBeginMembInfoList
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq = new BatchQueryBeginMembInfoListReq();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryBeginMembInfoListReq.setBeginMembInfoList(listInductionRecord.stream().map(item -> item.getOriginalRoleMemberId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:35532_1
            }

            /*1-2-10批量查询身份人员资料列表[1014]   */

            listOriginalRoleMemberInfo = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo;
        }

//步骤2: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryUserinfoListReq.setUserList(listInductionRecord.stream().map(item -> item.getUserId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:35533_1
            }

            /*1-2-02批量查询个人资料列表[52]   */

            listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listUserinfo_1 = listUserinfo;
        }

        QueryInductionRecordListBorderRespDto retData = new QueryInductionRecordListBorderRespDto();
        //数据集融合  MoreListToOneSource
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1) && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            for (InductionRecord inductionRecord : listInductionRecord_1) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:15932_2
                retElm.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:15933_2
                retElm.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:15934_2
                retElm.setPositionIdName(inductionRecord.getPositionIdName());//SimpleFieldAssign//sourceId:13476_2
                retElm.setFirstLetter(inductionRecord.getFirstLetter());//SimpleFieldAssign//sourceId:45690_2
                retElm.setIsMainInduction(inductionRecord.getIsMainInduction());//SimpleFieldAssign//sourceId:235067_2
                retElm.setOrganizationId(inductionRecord.getOrganizationId());//SimpleFieldAssign//sourceId:13471_2
                retElm.setOrganizationName(inductionRecord.getOrganizationName());//SimpleFieldAssign//sourceId:13472_2
                retElm.setEntityId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:13468_2
                retElm.setDeptShortName(inductionRecord.getDeptShortName());//SimpleFieldAssign//sourceId:13473_2
                retData.getOrgInductionRecordList().add(retElm);
                if (listOriginalRoleMemberInfo_1 != null && !CollectionUtil.isEmpty(listOriginalRoleMemberInfo_1)) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(inductionRecord.getOriginalRoleMemberId())) {
                            retElm.setRoleMemberCode(originalRoleMemberInfo.getRoleMemberCode());//SimpleFieldAssign//sourceId:15959_2
                            retElm.setIsPtJob(originalRoleMemberInfo.getIsPtJob());//SimpleFieldAssign//sourceId:30990_2
                        }
                    }
                }

                if (listUserinfo_1 != null && !CollectionUtil.isEmpty(listUserinfo_1)) {
                    for (Userinfo userinfo : listUserinfo_1) {
                        if (userinfo.getUserId().equals(inductionRecord.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:15957_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:15958_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:15960_2
                        }
                    }
                }

            }
        }//sourceId:31372_1


        return retData;
    }

    /**
     * D1-3批量查询就职记录列表（公共）[602]
     * gen by moon at 7/21/2024, 2:20:38 PM
     */
    @Trace(operationName = "D1-3批量查询就职记录列表（公共）")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListCom(BatchQueryInductionRecordListComReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_1 = new ArrayList<>();
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_1 = new ArrayList<>();
//步骤0: 1-3-13批量查询就职记录列表 - batchQueryInductionRecordList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        BatchQueryInductionRecordListReq batchQueryInductionRecordListReq = new BatchQueryInductionRecordListReq();
        batchQueryInductionRecordListReq.setIsEditing("FALSE");//sourceId:1063299_1
        batchQueryInductionRecordListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:85604_1
        if (reqDto != null) {
            batchQueryInductionRecordListReq.setPerOrgInductionRecordList(reqDto.getPerOrgInductionRecordList());//list-field-assign//sourceId:9566_1
            batchQueryInductionRecordListReq.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:229934_1
        }

        /*1-3-13批量查询就职记录列表[601] 通过就职记录集合查询列表详情处创建人冗余状态操作人的帐号id集合、用于下个虚拟用况的入参  */
        Assert.isNull(batchQueryInductionRecordListReq.getIsEditing(), "D1-3批量查询就职记录列表（公共）-1-3-13批量查询就职记录列表-是否未来不能为空", false);
        Assert.isNull(batchQueryInductionRecordListReq.getSpaceId(), "D1-3批量查询就职记录列表（公共）-1-3-13批量查询就职记录列表-创建于空间ID不能为空", false);
        listInductionRecord = mInductionRecordService.batchQueryInductionRecordList(batchQueryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

//步骤1: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryUserinfoListReq.setUserList(listInductionRecord.stream().map(item -> item.getUserId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:9564_1
            }

            /*1-2-02批量查询个人资料列表[52] 接收上个虚拟用况的入参账户集合、查询个人资料信息集合  */

            listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listUserinfo_1 = listUserinfo;
        }

//步骤2: 1-2-10批量查询身份人员资料列表 - batchQueryBeginMembInfoList
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq = new BatchQueryBeginMembInfoListReq();
            batchQueryBeginMembInfoListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:85615_1
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryBeginMembInfoListReq.setBeginMembInfoList(listInductionRecord.stream().map(item -> item.getOriginalRoleMemberId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:85105_1
            }

            /*1-2-10批量查询身份人员资料列表[1014]   */
            Assert.isNull(batchQueryBeginMembInfoListReq.getSpaceId(), "D1-3批量查询就职记录列表（公共）-1-2-10批量查询身份人员资料列表-创建于空间ID不能为空", false);
            listOriginalRoleMemberInfo = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo;
        }

        BatchQueryInductionRecordListComRespDto retData = new BatchQueryInductionRecordListComRespDto();
        //数据集融合  MoreListToOneSource
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1) && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            for (InductionRecord inductionRecord : listInductionRecord_1) {
                PerOrgInductionRecordDto retElm = new PerOrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:38658_2
                retElm.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:397217_2
                retElm.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:38663_2
                retElm.setInductionUnitTypeCode(inductionRecord.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:319032_2
                retElm.setEntityId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:52648_2
                retElm.setOrganizationName(inductionRecord.getOrganizationName());//SimpleFieldAssign//sourceId:319033_2
                retElm.setDeptShortName(inductionRecord.getDeptShortName());//SimpleFieldAssign//sourceId:319034_2
                retData.getPerOrgInductionRecordList().add(retElm);
                if (listUserinfo_1 != null && !CollectionUtil.isEmpty(listUserinfo_1)) {
                    for (Userinfo userinfo : listUserinfo_1) {
                        if (userinfo.getUserId().equals(inductionRecord.getUserId())) {
                            retElm.setPersonalDataId(userinfo.getPersonalDataId());//SimpleFieldAssign//sourceId:38659_2
                            retElm.setFirstLetter(userinfo.getFirstLetter());//SimpleFieldAssign//sourceId:246498_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:38660_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:38661_2
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:38662_2
                        }
                    }
                }

                if (listOriginalRoleMemberInfo_1 != null && !CollectionUtil.isEmpty(listOriginalRoleMemberInfo_1)) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(inductionRecord.getOriginalRoleMemberId())) {
                            retElm.setRoleMemberCode(originalRoleMemberInfo.getRoleMemberCode());//SimpleFieldAssign//sourceId:52719_2
                            retElm.setPositionIdName(originalRoleMemberInfo.getPositionIdName());//SimpleFieldAssign//sourceId:47572_2
                        }
                    }
                }

            }
        }//sourceId:66569_1


        return retData;
    }

    /**
     * D1-3查询个人就职记录信息详情（公共）[715]
     * gen by moon at 11/18/2023, 1:24:24 PM
     */
    @Trace(operationName = "D1-3查询个人就职记录信息详情（公共）")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailCom(QueryInductionRecordInfoDetailComReqDto reqDto) {


        InductionRecord inductionRecord_1 = null;
        Userinfo userinfo_1 = null;
//步骤0: 1-3-13查询就职记录详情 - queryinductionRecordDetail
        InductionRecord inductionRecord = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        queryinductionRecordDetailReq.setIsEditing("FALSE");//sourceId:1063297_1
        if (reqDto != null) {
            queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:14381_1
            queryinductionRecordDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:301554_1
        }

        /*1-3-13查询就职记录详情[165]   */
        Assert.isNull(queryinductionRecordDetailReq.getIsEditing(), "D1-3查询个人就职记录信息详情（公共）-1-3-13查询就职记录详情-是否未来不能为空", false);
        inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        inductionRecord_1 = inductionRecord;

//步骤1: 1-2-02查询个人资料详情 - queryUserinfoDetail
        Userinfo userinfo = null;
        if (inductionRecord != null) {
            QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
            if (inductionRecord != null) {
                queryUserinfoDetailReq.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:14443_1
            }

            /*1-2-02查询个人资料详情[155]   */
            Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-3查询个人就职记录信息详情（公共）-1-2-02查询个人资料详情-账号不能为空", false);
            userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            userinfo_1 = userinfo;
        }

        QueryInductionRecordInfoDetailComRespDto retData = new QueryInductionRecordInfoDetailComRespDto();
        if (userinfo_1 != null) {
            retData.setPersonalDataId(userinfo_1.getPersonalDataId());//SimpleFieldAssign//sourceId:14447_1
            retData.setUserId(userinfo_1.getUserId());//SimpleFieldAssign//sourceId:14448_1
            retData.setIdCardName(userinfo_1.getIdCardName());//SimpleFieldAssign//sourceId:14449_1
            retData.setNickName(userinfo_1.getNickName());//SimpleFieldAssign//sourceId:14450_1
            retData.setUserFace(userinfo_1.getUserFace());//SimpleFieldAssign//sourceId:14451_1
            retData.setFirstLetter(userinfo_1.getFirstLetter());//SimpleFieldAssign//sourceId:108872_1
        }
        if (inductionRecord_1 != null) {
            retData.setInductionRecordId(inductionRecord_1.getInductionRecordId());//SimpleFieldAssign//sourceId:104150_1
            retData.setOriginalRoleMemberId(inductionRecord_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:322251_1
            retData.setEntityId(inductionRecord_1.getEntityId());//SimpleFieldAssign//sourceId:640404_1
            retData.setDeptShortName(inductionRecord_1.getDeptShortName());//SimpleFieldAssign//sourceId:1327131_1
        }


        return retData;
    }

    /**
     * D1-3查询部门下就职记录列表（边界）[1569]
     * gen by moon at 4/26/2023, 12:19:45 AM
     */
    @Trace(operationName = "D1-3查询部门下就职记录列表（边界）")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryDeptInductionRecordListRespDto queryDeptInductionRecordList(QueryDeptInductionRecordListReqDto reqDto) {


        List<OriginalRoleMember> listOriginalRoleMember_1 = new ArrayList<>();
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_1 = new ArrayList<>();
//步骤0: 1-3-09模糊查询部门列表 - vagueQueryDept
        List<Dept> listDept = new ArrayList<>();
        VagueQueryDeptReq vagueQueryDeptReq = new VagueQueryDeptReq();
        if (reqDto != null) {
            vagueQueryDeptReq.setDeptCode(reqDto.getDeptCode());//SimpleFieldAssign//sourceId:45306_1
            vagueQueryDeptReq.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:46863_1
        }

        /*1-3-09模糊查询部门列表（所有层级子部门）[1570]   */

        listDept = mDeptService.vagueQueryDept(vagueQueryDeptReq)/*vcase invoke 本地 method 方法调用;*/;


//步骤1: 1-3-13批量查非直属就职记录 - batchQueryUndoDirectInductionRecord
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        if (listDept != null && listDept.size() > 0) {
            BatchQueryUndoDirectInductionRecordReq batchQueryUndoDirectInductionRecordReq = new BatchQueryUndoDirectInductionRecordReq();
            batchQueryUndoDirectInductionRecordReq.setInductionUnitTypeCode("DEPT");//sourceId:45311_1
            batchQueryUndoDirectInductionRecordReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:45314_1
            batchQueryUndoDirectInductionRecordReq.setIsTransaction("FALSE");//sourceId:51057_1
            if (listDept != null && !CollectionUtil.isEmpty(listDept) && listDept != null && !CollectionUtil.isEmpty(listDept)) {
                batchQueryUndoDirectInductionRecordReq.setOrgInductionRecordList(listDept.stream().map(item -> item.getDeptId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:45310_1
            }

            /*1-3-13批量查非直属就职记录（非直属）[1477]   */
            Assert.isNull(batchQueryUndoDirectInductionRecordReq.getInductionUnitTypeCode(), "D1-3查询部门下就职记录列表（边界）-1-3-13批量查非直属就职记录（非直属）-就职单位类型实例不能为空", false);
            Assert.isNull(batchQueryUndoDirectInductionRecordReq.getSubjectLifeCycle(), "D1-3查询部门下就职记录列表（边界）-1-3-13批量查非直属就职记录（非直属）-主体生命周期不能为空", false);
            listInductionRecord = mInductionRecordService.batchQueryUndoDirectInductionRecord(batchQueryUndoDirectInductionRecordReq)/*vcase invoke 本地 method 方法调用;*/;


        }

//步骤2: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord_2 = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        queryInductionRecordListReq.setInductionUnitTypeCode("DEPT");//sourceId:45315_1
        queryInductionRecordListReq.setIsTransaction("FALSE");//sourceId:51058_1
        queryInductionRecordListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:45317_1
        if (reqDto != null) {
            queryInductionRecordListReq.setEntityId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:45316_1
        }

        /*1-3-13查询就职记录列表（查直属）[166]   */

        listInductionRecord_2 = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


//步骤3: M-合并就职记录（特殊方法） - updateMergeInductionRecord
        //ModelCode: collectionsMergeData
        UpdateMergeInductionRecordRespDto collectionsMergeDataRes = null;
        if (listInductionRecord != null && listInductionRecord.size() > 0) {
            UpdateMergeInductionRecordReqDto collectionsMergeDataReq = new UpdateMergeInductionRecordReqDto();
            collectionsMergeDataReq.setOrgInductionRecordList(listInductionRecord.stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:45322_1
            collectionsMergeDataReq.setPerOrgInductionRecordList(listInductionRecord_2.stream().map(item -> BeanUtil.toBean(item, PerOrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:45323_1

            /*M-合并就职记录（特殊方法）[1220]  入参多个数据集，取并集 */

            collectionsMergeDataRes = nbInductionRecord.updateMergeInductionRecord(collectionsMergeDataReq);


        }

//步骤4: 1-2-09批量查询身份人员列表	 - batchQueryBeginMemberList
        List<OriginalRoleMember> listOriginalRoleMember = new ArrayList<>();
        BatchQueryBeginMemberListReq batchQueryBeginMemberListReq = new BatchQueryBeginMemberListReq();
        batchQueryBeginMemberListReq.setIsInvalid("FALSE");//sourceId:46219_1
        batchQueryBeginMemberListReq.setIsTransaction("FALSE");//sourceId:51059_1
        batchQueryBeginMemberListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:46221_1
        if (collectionsMergeDataRes != null) {
            batchQueryBeginMemberListReq.setBeginMemberList(collectionsMergeDataRes.getMergeInductionRecordList().stream().map(item -> item.getOriginalRoleMemberId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:46216_1
        }

        /*1-2-09批量查询身份人员列表	[1181]   */
        Assert.isNull(batchQueryBeginMemberListReq.getIsInvalid(), "D1-3查询部门下就职记录列表（边界）-1-2-09批量查询身份人员列表	-是否失效不能为空", false);
        Assert.isNull(batchQueryBeginMemberListReq.getSubjectLifeCycle(), "D1-3查询部门下就职记录列表（边界）-1-2-09批量查询身份人员列表	-主体生命周期不能为空", false);
        listOriginalRoleMember = mOriginalRoleMemberService.batchQueryBeginMemberList(batchQueryBeginMemberListReq)/*vcase invoke 本地 method 方法调用;*/;


        listOriginalRoleMember_1 = listOriginalRoleMember;

//步骤5: 1-2-10批量查询身份人员资料列表 - batchQueryBeginMembInfoList
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo = new ArrayList<>();
        if (listOriginalRoleMember != null && listOriginalRoleMember.size() > 0) {
            BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq = new BatchQueryBeginMembInfoListReq();
            batchQueryBeginMembInfoListReq.setBeginMembInfoList(listOriginalRoleMember.stream().map(item -> item.getOriginalRoleMemberId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:45326_1

            /*1-2-10批量查询身份人员资料列表[1014]   */

            listOriginalRoleMemberInfo = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo;
        }

//步骤6: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        if (listOriginalRoleMember != null && listOriginalRoleMember.size() > 0) {
            BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
            batchQueryUserinfoListReq.setUserList(listOriginalRoleMember.stream().map(item -> item.getUserId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:45327_1

            /*1-2-02批量查询个人资料列表[52]   */

            listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listUserinfo_1 = listUserinfo;
        }

        QueryDeptInductionRecordListRespDto retData = new QueryDeptInductionRecordListRespDto();
        //数据集融合  MoreListToOneSource
        if (listOriginalRoleMember_1 != null && !CollectionUtil.isEmpty(listOriginalRoleMember_1)) {
            for (OriginalRoleMember originalRoleMember : listOriginalRoleMember_1) {
                StaffBeginMemberDto retElm = new StaffBeginMemberDto();
                retElm.setOriginalRoleMemberId(originalRoleMember.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:39061_2
                retElm.setUserId(originalRoleMember.getUserId());//SimpleFieldAssign//sourceId:22315_2
                retElm.setFirstLetter(originalRoleMember.getFirstLetter());//SimpleFieldAssign//sourceId:30993_2
                retData.getStaffBeginMemberList().add(retElm);
                if (listUserinfo_1 != null) {
                    for (Userinfo userinfo : listUserinfo_1) {
                        if (userinfo.getUserId().equals(originalRoleMember.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:22319_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:22317_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:22318_2
                        }
                    }
                }

                if (listOriginalRoleMemberInfo_1 != null) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(originalRoleMember.getOriginalRoleMemberId())) {
                            retElm.setRoleMemberCode(originalRoleMemberInfo.getRoleMemberCode());//SimpleFieldAssign//sourceId:22316_2
                        }
                    }
                }

            }
        }//sourceId:46306_1


        return retData;
    }

    /**
     * D1-3查询无组织架构就职记录列表（边界）[1702]
     * gen by moon at 5/23/2024, 11:28:14 PM
     */
    @Trace(operationName = "D1-3查询无组织架构就职记录列表（边界）")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUnstructuredInductionRecordListBorderRespDto queryUnstructuredInductionRecordListBorder(QueryUnstructuredInductionRecordListBorderReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_3 = new ArrayList<>();
        List<InductionRecord> listInductionRecord_3 = new ArrayList<>();
        if ((reqDto != null && reqDto.getIdCardName() != null)) {
            //if(D1-3查询无组织架构就职记录列表（边界）.真实姓名 不等于空 )  1649

            List<Userinfo> listUserinfo = new ArrayList<>();
            QueryUserInfoListReq queryUserInfoListReq = new QueryUserInfoListReq();
            if (reqDto != null) {
                queryUserInfoListReq.setIdCardName(reqDto.getIdCardName());//SimpleFieldAssign//sourceId:50739_1_1651
            }

            /*1-2-02查询个人资料列表（搜索）[1178]   */

            listUserinfo = mUserinfoService.queryUserInfoList(queryUserInfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            List<InductionRecord> listInductionRecord = new ArrayList<>();
            if (listUserinfo != null && !CollectionUtil.isEmpty(listUserinfo) && listUserinfo.size() > 0) {
                BatchQueryInductionRecordListByUserIdReq batchQueryInductionRecordListByUserIdReq = new BatchQueryInductionRecordListByUserIdReq();
                batchQueryInductionRecordListByUserIdReq.setInductionUnitTypeCode("ORG");//sourceId:50837_1_1652
                batchQueryInductionRecordListByUserIdReq.setEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOrganizationId());//CURRENT_ORGID//sourceId:50838_1_1652
                batchQueryInductionRecordListByUserIdReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:50841_1_1652
                batchQueryInductionRecordListByUserIdReq.setIsTransaction("FALSE");//sourceId:50840_1_1652
                if (listUserinfo != null && !CollectionUtil.isEmpty(listUserinfo) && listUserinfo != null && !CollectionUtil.isEmpty(listUserinfo)) {
                    batchQueryInductionRecordListByUserIdReq.setOrgInductionRecordList(listUserinfo.stream().map(item -> item.getUserId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:50942_1_1652
                }

                /*1-3-13批量查询就职记录列表ByUserId[1703]   */
                Assert.isNull(batchQueryInductionRecordListByUserIdReq.getInductionUnitTypeCode(), "D1-3查询无组织架构就职记录列表（边界）-1-3-13批量查询就职记录列表ByUserId-就职单位类型实例不能为空", false);
                Assert.isNull(batchQueryInductionRecordListByUserIdReq.getEntityId(), "D1-3查询无组织架构就职记录列表（边界）-1-3-13批量查询就职记录列表ByUserId-就职单位对象实例ID不能为空", false);
                Assert.isNull(batchQueryInductionRecordListByUserIdReq.getSubjectLifeCycle(), "D1-3查询无组织架构就职记录列表（边界）-1-3-13批量查询就职记录列表ByUserId-主体生命周期不能为空", false);
                Assert.isNull(batchQueryInductionRecordListByUserIdReq.getIsTransaction(), "D1-3查询无组织架构就职记录列表（边界）-1-3-13批量查询就职记录列表ByUserId-是否异动不能为空", false);
                listInductionRecord = mInductionRecordService.batchQueryInductionRecordListByUserId(batchQueryInductionRecordListByUserIdReq)/*vcase invoke 本地 method 方法调用;*/;


                listInductionRecord_1 = listInductionRecord;
            }
            List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo = new ArrayList<>();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
                BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq = new BatchQueryBeginMembInfoListReq();
                if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                    batchQueryBeginMembInfoListReq.setBeginMembInfoList(listInductionRecord.stream().map(item -> item.getOriginalRoleMemberId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:50848_1_1653
                }

                /*1-2-10批量查询身份人员资料列表[1014]   */

                listOriginalRoleMemberInfo = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq)/*vcase invoke 本地 method 方法调用;*/;


                listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo;
            }
            List<Userinfo> listUserinfo_2 = new ArrayList<>();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
                BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
                if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                    batchQueryUserinfoListReq.setUserList(listInductionRecord.stream().map(item -> item.getUserId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:50850_1_1654
                }

                /*1-2-02批量查询个人资料列表[52]   */

                listUserinfo_2 = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq)/*vcase invoke 本地 method 方法调用;*/;


                listUserinfo_3 = listUserinfo_2;
            }
//processBranchName:正常结束 ,processBranchId:1657

        } else {
            //else  1650

            List<InductionRecord> listInductionRecord_2 = new ArrayList<>();
            QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
            queryInductionRecordListReq.setInductionUnitTypeCode("ORG");//sourceId:50908_1_1658
            queryInductionRecordListReq.setEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOrganizationId());//CURRENT_ORGID//sourceId:50909_1_1658
            queryInductionRecordListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:50913_1_1658
            queryInductionRecordListReq.setIsTransaction("FALSE");//sourceId:50912_1_1658

            /*1-3-13查询就职记录列表[166]   */
            Assert.isNull(queryInductionRecordListReq.getInductionUnitTypeCode(), "D1-3查询无组织架构就职记录列表（边界）-1-3-13查询就职记录列表-就职单位类型实例不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getEntityId(), "D1-3查询无组织架构就职记录列表（边界）-1-3-13查询就职记录列表-就职单位对象实例ID不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getSubjectLifeCycle(), "D1-3查询无组织架构就职记录列表（边界）-1-3-13查询就职记录列表-主体生命周期不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getIsTransaction(), "D1-3查询无组织架构就职记录列表（边界）-1-3-13查询就职记录列表-是否异动不能为空", false);
            listInductionRecord_2 = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


            listInductionRecord_3 = listInductionRecord_2;
            List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_2 = new ArrayList<>();
            if (listInductionRecord_2 != null && !CollectionUtil.isEmpty(listInductionRecord_2) && listInductionRecord_2.size() > 0) {
                BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq_1 = new BatchQueryBeginMembInfoListReq();
                if (listInductionRecord_2 != null && !CollectionUtil.isEmpty(listInductionRecord_2) && listInductionRecord_2 != null && !CollectionUtil.isEmpty(listInductionRecord_2)) {
                    batchQueryBeginMembInfoListReq_1.setBeginMembInfoList(listInductionRecord_2.stream().map(item -> item.getOriginalRoleMemberId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:50848_1_1661
                }

                /*1-2-10批量查询身份人员资料列表[1014]   */

                listOriginalRoleMemberInfo_2 = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq_1)/*vcase invoke 本地 method 方法调用;*/;


                listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo_2;
            }
            List<Userinfo> listUserinfo_4 = new ArrayList<>();
            if (listInductionRecord_2 != null && !CollectionUtil.isEmpty(listInductionRecord_2) && listInductionRecord_2.size() > 0) {
                BatchQueryUserinfoListReq batchQueryUserinfoListReq_1 = new BatchQueryUserinfoListReq();
                if (listInductionRecord_2 != null && !CollectionUtil.isEmpty(listInductionRecord_2) && listInductionRecord_2 != null && !CollectionUtil.isEmpty(listInductionRecord_2)) {
                    batchQueryUserinfoListReq_1.setUserList(listInductionRecord_2.stream().map(item -> item.getUserId())
                            .collect(Collectors.toList()));/*list-to-strings*///sourceId:50850_1_1662
                }

                /*1-2-02批量查询个人资料列表[52]   */

                listUserinfo_4 = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq_1)/*vcase invoke 本地 method 方法调用;*/;


                listUserinfo_3 = listUserinfo_4;
            }
//processBranchName:正常结束 ,processBranchId:1663

        }
        QueryUnstructuredInductionRecordListBorderRespDto retData = new QueryUnstructuredInductionRecordListBorderRespDto();
        //数据集融合  MoreListToOneSource
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1) && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            for (InductionRecord inductionRecord : listInductionRecord_1) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:26449_2
                retElm.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:26450_2
                retElm.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:26451_2
                retData.getOrgInductionRecordList().add(retElm);
                if (listOriginalRoleMemberInfo_1 != null && !CollectionUtil.isEmpty(listOriginalRoleMemberInfo_1)) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(inductionRecord.getOriginalRoleMemberId())) {
                            retElm.setRoleMemberCode(originalRoleMemberInfo.getRoleMemberCode());//SimpleFieldAssign//sourceId:26452_2
                            retElm.setPositionIdName(originalRoleMemberInfo.getPositionIdName());//SimpleFieldAssign//sourceId:26455_2
                        }
                    }
                }

                if (listUserinfo_3 != null && !CollectionUtil.isEmpty(listUserinfo_3)) {
                    for (Userinfo userinfo : listUserinfo_3) {
                        if (userinfo.getUserId().equals(inductionRecord.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:26456_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:26453_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:26454_2
                        }
                    }
                }

            }
        }
//数据集融合  MoreListToOneSource
        if (listInductionRecord_3 != null && !CollectionUtil.isEmpty(listInductionRecord_3) && !CollectionUtil.isEmpty(listInductionRecord_3)) {
            for (InductionRecord inductionRecord : listInductionRecord_3) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:26449_2
                retElm.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:26450_2
                retElm.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:26451_2
                retData.getOrgInductionRecordList().add(retElm);
                if (listOriginalRoleMemberInfo_1 != null && !CollectionUtil.isEmpty(listOriginalRoleMemberInfo_1)) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(inductionRecord.getOriginalRoleMemberId())) {
                            retElm.setRoleMemberCode(originalRoleMemberInfo.getRoleMemberCode());//SimpleFieldAssign//sourceId:26452_2
                            retElm.setPositionIdName(originalRoleMemberInfo.getPositionIdName());//SimpleFieldAssign//sourceId:26455_2
                        }
                    }
                }

                if (listUserinfo_3 != null && !CollectionUtil.isEmpty(listUserinfo_3)) {
                    for (Userinfo userinfo : listUserinfo_3) {
                        if (userinfo.getUserId().equals(inductionRecord.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:26456_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:26453_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:26454_2
                        }
                    }
                }

            }
        }//sourceId:50939_1


        return retData;
    }

    /**
     * D1-3查询更新的就职记录列表[1535]
     * gen by moon at 10/2/2022, 12:10:59 AM
     */
    @Trace(operationName = "D1-3查询更新的就职记录列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUpdatedInductionListRespDto queryUpdatedInductionList(QueryUpdatedInductionListReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_1 = new ArrayList<>();
//步骤0: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        if (reqDto != null) {
            queryInductionRecordListReq.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:43436_1
            queryInductionRecordListReq.setIsUpdate(reqDto.getIsUpdate());//SimpleFieldAssign//sourceId:43460_1
        }

        /*1-3-13查询就职记录列表[166]   */

        listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq);


        listInductionRecord_1 = listInductionRecord;

//步骤1: 1-2-10批量查询身份人员资料列表 - batchQueryBeginMembInfoList
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo = new ArrayList<>();
        if (listInductionRecord != null && listInductionRecord.size() > 0) {
            BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq = new BatchQueryBeginMembInfoListReq();
            batchQueryBeginMembInfoListReq.setBeginMembInfoList(listInductionRecord.stream().map(item -> item.getOriginalRoleMemberId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:43493_1

            /*1-2-10批量查询身份人员资料列表[1014]   */

            listOriginalRoleMemberInfo = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq);


            listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo;
        }

//步骤2: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        if (listInductionRecord != null && listInductionRecord.size() > 0) {
            BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
            batchQueryUserinfoListReq.setUserList(listInductionRecord.stream().map(item -> item.getUserId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:43634_1

            /*1-2-02批量查询个人资料列表[52]   */

            listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq);


            listUserinfo_1 = listUserinfo;
        }

        QueryUpdatedInductionListRespDto retData = new QueryUpdatedInductionListRespDto();
        //数据集融合  MoreListToOneSource
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            for (InductionRecord inductionRecord : listInductionRecord_1) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:35158_2
                retElm.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:35162_2
                retElm.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:39036_2
                retElm.setOrderNumber(inductionRecord.getOrderNumber());//SimpleFieldAssign//sourceId:91614_2
                retElm.setInductionUnitTypeCode(inductionRecord.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:35159_2
                retElm.setEntityId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:35160_2
                retElm.setDeptShortName(inductionRecord.getDeptShortName());//SimpleFieldAssign//sourceId:35161_2
                retElm.setUpdateStatus(inductionRecord.getUpdateStatus());//SimpleFieldAssign//sourceId:35170_2
                retData.getOrgInductionRecordList().add(retElm);
                if (listOriginalRoleMemberInfo_1 != null) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(inductionRecord.getOriginalRoleMemberId())) {
                            retElm.setOriginalRoleMemberId(originalRoleMemberInfo.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:35162_2
                            retElm.setRoleMemberCode(originalRoleMemberInfo.getRoleMemberCode());//SimpleFieldAssign//sourceId:35164_2
                        }
                    }
                }

                if (listUserinfo_1 != null) {
                    for (Userinfo userinfo : listUserinfo_1) {
                        if (userinfo.getUserId().equals(inductionRecord.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:35166_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:35167_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:35168_2
                        }
                    }
                }

            }
        }//sourceId:63292_1


        return retData;
    }

    /**
     * D1-3查询直属就职记录列表[452]
     * gen by moon at 10/2/2022, 6:41:16 AM
     */
    @Trace(operationName = "D1-3查询直属就职记录列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryDirectInductionRecordListRespDto queryDirectInductionRecordList(QueryDirectInductionRecordListReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_1 = new ArrayList<>();
//步骤0: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        if (reqDto != null) {
            queryInductionRecordListReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:38164_1
            queryInductionRecordListReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:38165_1
            queryInductionRecordListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:38166_1
            queryInductionRecordListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:38736_1
            queryInductionRecordListReq.setUpdateStatus(reqDto.getUpdateStatus());//SimpleFieldAssign//sourceId:50990_1
        }

        /*1-3-13查询就职记录列表[166]   */

        listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq);

        listInductionRecord_1 = listInductionRecord;

//步骤1: 1-2-10批量查询身份人员资料列表 - batchQueryBeginMembInfoList
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo = new ArrayList<>();
        if (listInductionRecord != null && listInductionRecord.size() > 0) {
            BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq = new BatchQueryBeginMembInfoListReq();
            batchQueryBeginMembInfoListReq.setBeginMembInfoList(listInductionRecord.stream().map(item -> item.getOriginalRoleMemberId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:38740_1

            /*1-2-10批量查询身份人员资料列表[1014]   */

            listOriginalRoleMemberInfo = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq);

            listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo;
        }

//步骤2: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        if (listInductionRecord != null && listInductionRecord.size() > 0) {
            BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
            batchQueryUserinfoListReq.setUserList(listInductionRecord.stream().map(item -> item.getUserId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:38171_1

            /*1-2-02批量查询个人资料列表[52]   */

            listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq);

            listUserinfo_1 = listUserinfo;
        }

        QueryDirectInductionRecordListRespDto retData = new QueryDirectInductionRecordListRespDto();
        //数据集融合  MoreListToOneSource
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            for (InductionRecord inductionRecord : listInductionRecord_1) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:17418_2
                retElm.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:29658_2
                retElm.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:17422_2
                retElm.setPositionIdName(inductionRecord.getPositionIdName());//SimpleFieldAssign//sourceId:17423_2
                retElm.setUpdateStatus(inductionRecord.getUpdateStatus());//SimpleFieldAssign//sourceId:17424_2
                retElm.setIsTransaction(inductionRecord.getIsTransaction());//SimpleFieldAssign//sourceId:26535_2
                retData.getOrgInductionRecordList().add(retElm);
                if (listUserinfo_1 != null) {
                    for (Userinfo userinfo : listUserinfo_1) {
                        if (userinfo.getUserId().equals(inductionRecord.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:17421_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:17419_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:17420_2
                        }
                    }
                }

                if (listOriginalRoleMemberInfo_1 != null) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(inductionRecord.getOriginalRoleMemberId())) {
                            retElm.setRoleMemberCode(originalRoleMemberInfo.getRoleMemberCode());//SimpleFieldAssign//sourceId:17575_2
                            retElm.setIsPtJob(originalRoleMemberInfo.getIsPtJob());//SimpleFieldAssign//sourceId:17576_2
                        }
                    }
                }

            }
        }//sourceId:38173_1


        return retData;
    }

    /**
     * D1-3查询就职记录详情[405]
     * gen by moon at 9/22/2023, 6:26:59 PM
     */
    @Trace(operationName = "D1-3查询就职记录详情")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryInductionRecordDetailRespDto queryInductionRecordDetail(QueryInductionRecordDetailReqDto reqDto) {


        InductionRecord inductionRecord_1 = null;
        Userinfo userinfo_1 = null;
        OriginalRoleMemberInfo originalRoleMemberInfo_1 = null;
        Dept dept_1 = null;
        ReviseBaseChangeColComRespDto reviseBaseChangeColComRespDto_1 = null;
//步骤0: 1-3-13查询就职记录详情 - queryinductionRecordDetail
        InductionRecord inductionRecord = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        queryinductionRecordDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:197800_1
        if (reqDto != null) {
            queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:9233_1
        }

        /*1-3-13查询就职记录详情[165]   */
        Assert.isNull(queryinductionRecordDetailReq.getInductionRecordId(), "D1-3查询就职记录详情-1-3-13查询就职记录详情-就职记录ID不能为空", false);
        Assert.isNull(queryinductionRecordDetailReq.getSpaceId(), "D1-3查询就职记录详情-1-3-13查询就职记录详情-创建于空间ID不能为空", false);
        inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        inductionRecord_1 = inductionRecord;

//步骤1: 1-2-02查询个人资料详情 - queryUserinfoDetail
        Userinfo userinfo = null;
        if (inductionRecord != null) {
            QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
            if (inductionRecord != null) {
                queryUserinfoDetailReq.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:9292_1
            }

            /*1-2-02查询个人资料详情[155]   */
            Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-3查询就职记录详情-1-2-02查询个人资料详情-账号不能为空", false);
            userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            userinfo_1 = userinfo;
        }

//步骤2: 1-2-10查询身份人员资料详情 - queryBeginMembInfoDetail
        OriginalRoleMemberInfo originalRoleMemberInfo = null;
        if (inductionRecord != null) {
            QueryBeginMembInfoDetailReq queryBeginMembInfoDetailReq = new QueryBeginMembInfoDetailReq();
            queryBeginMembInfoDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:197819_1
            if (inductionRecord != null) {
                queryBeginMembInfoDetailReq.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:38306_1
            }

            /*1-2-10查询身份人员资料详情[116]   */
            Assert.isNull(queryBeginMembInfoDetailReq.getOriginalRoleMemberId(), "D1-3查询就职记录详情-1-2-10查询身份人员资料详情-身份人员ID不能为空", false);
            Assert.isNull(queryBeginMembInfoDetailReq.getSpaceId(), "D1-3查询就职记录详情-1-2-10查询身份人员资料详情-创建于空间ID不能为空", false);
            originalRoleMemberInfo = mOriginalRoleMemberInfoService.queryBeginMembInfoDetail(queryBeginMembInfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            originalRoleMemberInfo_1 = originalRoleMemberInfo;
        }

//步骤3: 1-2-13查询角色人员详情 - queryRoleRelDetail
        RoleMember roleMember = null;
        if (inductionRecord != null) {
            QueryRoleRelDetailReq queryRoleRelDetailReq = new QueryRoleRelDetailReq();
            queryRoleRelDetailReq.setRoleCode("DEPT_LEADER");//CUSTOM_CONVENTION//sourceId:38371_1
            if (inductionRecord != null) {
                queryRoleRelDetailReq.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:38370_1
            }

            /*1-2-13查询角色人员详情（查是否分管领导）[335]   */
            Assert.isNull(queryRoleRelDetailReq.getOriginalRoleMemberId(), "D1-3查询就职记录详情-1-2-13查询角色人员详情（查是否分管领导）-身份人员ID不能为空", false);
            Assert.isNull(queryRoleRelDetailReq.getRoleCode(), "D1-3查询就职记录详情-1-2-13查询角色人员详情（查是否分管领导）-角色标识不能为空", false);
            roleMember = mRoleMemberService.queryRoleRelDetail(queryRoleRelDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        }

//步骤4: 1-3-09查询部门详情 - queryDeptDetail
        Dept dept = null;
        if (roleMember != null && roleMember != null && roleMember.getRoleMemberId() != null) {
            QueryDeptDetailReq queryDeptDetailReq = new QueryDeptDetailReq();
            if (roleMember != null) {
                queryDeptDetailReq.setRoleMemberId(roleMember.getRoleMemberId());//SimpleFieldAssign//sourceId:38402_1
            }

            /*1-3-09查询部门详情（查分管部门）[218]   */
            Assert.isNull(queryDeptDetailReq.getRoleMemberId(), "D1-3查询就职记录详情-1-3-09查询部门详情（查分管部门）-可选分管领导角色成员ID不能为空", false);
            dept = mDeptService.queryDeptDetail(queryDeptDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            dept_1 = dept;
        }

//步骤5: D1修订底层变更字段(公共) - reviseBaseChangeColCom
        ReviseBaseChangeColComRespDto reviseBaseChangeColComRespDto = null;
        if (inductionRecord != null) {
            ReviseBaseChangeColComReqDto reviseBaseChangeColComReqDto = new ReviseBaseChangeColComReqDto();
            reviseBaseChangeColComReqDto.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:312724_1
            if (reqDto != null) {
                reviseBaseChangeColComReqDto.setEntityId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:312725_1
            }
            if (inductionRecord != null) {
                reviseBaseChangeColComReqDto.setDirectorInductionRecordId(inductionRecord.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:312722_1
            }

            /*D1修订底层变更字段(公共)[3921]   */
            Assert.isNull(reviseBaseChangeColComReqDto.getTableTypeCode(), "D1-3查询就职记录详情-D1修订底层变更字段(公共)-内容表类型编码不能为空", false);
            Assert.isNull(reviseBaseChangeColComReqDto.getEntityId(), "D1-3查询就职记录详情-D1修订底层变更字段(公共)-内容表主键ID不能为空", false);
            reviseBaseChangeColComRespDto = changeColumnService.reviseBaseChangeColCom(reviseBaseChangeColComReqDto)/*vcase invoke isSameApp*/;


            reviseBaseChangeColComRespDto_1 = reviseBaseChangeColComRespDto;
        }

        QueryInductionRecordDetailRespDto retData = new QueryInductionRecordDetailRespDto();
        if (inductionRecord_1 != null) {
            retData.setInductionRecordId(inductionRecord_1.getInductionRecordId());//SimpleFieldAssign//sourceId:38261_1
            retData.setOriginalRoleMemberId(inductionRecord_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:38266_1
            retData.setUserId(inductionRecord_1.getUserId());//SimpleFieldAssign//sourceId:38267_1
            retData.setFirstLetter(inductionRecord_1.getFirstLetter());//SimpleFieldAssign//sourceId:38271_1
            retData.setIsMainInduction(inductionRecord_1.getIsMainInduction());//SimpleFieldAssign//sourceId:38272_1
            retData.setIsDirector(inductionRecord_1.getIsDirector());//SimpleFieldAssign//sourceId:247254_1
            retData.setIsXzDirector(inductionRecord_1.getIsXzDirector());//SimpleFieldAssign//sourceId:1132588_1
            retData.setIsCustomPosition(inductionRecord_1.getIsCustomPosition());//SimpleFieldAssign//sourceId:38273_1
            retData.setPositionType(inductionRecord_1.getPositionType());//SimpleFieldAssign//sourceId:38274_1
            retData.setStaffingId(inductionRecord_1.getStaffingId());//SimpleFieldAssign//sourceId:38275_1
            retData.setInductionStartTime(inductionRecord_1.getInductionStartTime());//SimpleFieldAssign//sourceId:38285_1
            retData.setInductionEndTime(inductionRecord_1.getInductionEndTime());//SimpleFieldAssign//sourceId:167479_1
            retData.setPositionIdName(inductionRecord_1.getPositionIdName());//SimpleFieldAssign//sourceId:38276_1
            retData.setPositionId(inductionRecord_1.getPositionId());//SimpleFieldAssign//sourceId:38277_1
            retData.setPositionGradeId(inductionRecord_1.getPositionGradeId());//SimpleFieldAssign//sourceId:63284_1
            retData.setPositionGradeName(inductionRecord_1.getPositionGradeName());//SimpleFieldAssign//sourceId:38278_1
            retData.setTypeDictionaryName(inductionRecord_1.getTypeDictionaryName());//SimpleFieldAssign//sourceId:38279_1
            retData.setStationName(inductionRecord_1.getStationName());//SimpleFieldAssign//sourceId:38280_1
            retData.setPostName(inductionRecord_1.getPostName());//SimpleFieldAssign//sourceId:38281_1
            retData.setStationTypeName(inductionRecord_1.getStationTypeName());//SimpleFieldAssign//sourceId:38282_1
            retData.setStationGradeName(inductionRecord_1.getStationGradeName());//SimpleFieldAssign//sourceId:38283_1
            retData.setOrganizationId(inductionRecord_1.getOrganizationId());//SimpleFieldAssign//sourceId:38268_1
            retData.setOrganizationName(inductionRecord_1.getOrganizationName());//SimpleFieldAssign//sourceId:38269_1
            retData.setEntityId(inductionRecord_1.getEntityId());//SimpleFieldAssign//sourceId:38264_1
            retData.setDeptShortName(inductionRecord_1.getDeptShortName());//SimpleFieldAssign//sourceId:38270_1
            retData.setOrderNumber(inductionRecord_1.getOrderNumber());//SimpleFieldAssign//sourceId:157594_1
            retData.setSubjectLifeCycle(inductionRecord_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:259216_1
            retData.setUpdateStatus(inductionRecord_1.getUpdateStatus());//SimpleFieldAssign//sourceId:38286_1
            retData.setArchivngType(inductionRecord_1.getArchivngType());//SimpleFieldAssign//sourceId:259467_1
            retData.setOperationInductionId(inductionRecord_1.getOperationInductionId());//SimpleFieldAssign//sourceId:38287_1
            retData.setOperateTime(inductionRecord_1.getOperateTime());//SimpleFieldAssign//sourceId:38288_1
        }
        if (userinfo_1 != null) {
            retData.setUserFace(userinfo_1.getUserFace());//SimpleFieldAssign//sourceId:38260_1
            retData.setIdCardName(userinfo_1.getIdCardName());//SimpleFieldAssign//sourceId:38262_1
            retData.setNickName(userinfo_1.getNickName());//SimpleFieldAssign//sourceId:38263_1
            retData.setSex(userinfo_1.getSex());//SimpleFieldAssign//sourceId:38265_1
        }
        if (originalRoleMemberInfo_1 != null) {
            retData.setRoleMemberCode(originalRoleMemberInfo_1.getRoleMemberCode());//SimpleFieldAssign//sourceId:38310_1
            retData.setIsPtJob(originalRoleMemberInfo_1.getIsPtJob());//SimpleFieldAssign//sourceId:56495_1
            retData.setRelaMemo(originalRoleMemberInfo_1.getRelaMemo());//SimpleFieldAssign//sourceId:38373_1
        }
        if (reviseBaseChangeColComRespDto_1 != null) {
            retData.setReportChargeInductionRecordId(reviseBaseChangeColComRespDto_1.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:312901_1
        }
        if (dept_1 != null) {
            retData.setDeptId(dept_1.getDeptId());//SimpleFieldAssign//sourceId:153483_1
            retData.setDeptName(dept_1.getDeptName());//SimpleFieldAssign//sourceId:38424_1
        }


        return retData;
    }

    /**
     * D1-3一键更新职务信息[1785]
     */
    @Trace(operationName = "D1-3一键更新职务信息")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchUpdateInductionRecordRespDto batchUpdateInductionRecord(BatchUpdateInductionRecordReqDto reqDto) {


        //步骤0: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord = null;
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        queryInductionRecordListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:54341_1
        queryInductionRecordListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:54476_1

        /*1-3-13查询就职记录列表[166]   */
        listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq);


//步骤1: 1-3-05批量查询职务列表 - batchQueryPositionList
        List<Position> listPosition = null;
        if (listInductionRecord != null && listInductionRecord.size() > 0) {
            BatchQueryPositionListReq batchQueryPositionListReq = new BatchQueryPositionListReq();
            batchQueryPositionListReq.setPositionList(listInductionRecord.stream()
                    .map(item -> item.getPositionId())
                    .collect(Collectors.toList()));//sourceId:54343_1
            batchQueryPositionListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:54346_1

            /*1-3-05批量查询职务列表[1460]   */
            listPosition = mPositionService.batchQueryPositionList(batchQueryPositionListReq);


        }

//步骤2: 1-3-03批量查询职务级别列表 - batchQueryPositionGradeList
        List<PositionGrade> listPositionGrade = null;
        if (listPosition != null && listPosition.size() > 0) {
            BatchQueryPositionGradeListReq batchQueryPositionGradeListReq = new BatchQueryPositionGradeListReq();
            batchQueryPositionGradeListReq.setOrgPositionGradeList(listPosition.stream()
                    .map(item -> item.getPositionGradeId())
                    .collect(Collectors.toList()));//sourceId:54350_1
            batchQueryPositionGradeListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:54351_1

            /*1-3-03批量查询职务级别列表[1482]   */
            listPositionGrade = mPositionGradeService.batchQueryPositionGradeList(batchQueryPositionGradeListReq);


        }

//步骤3: 1-3-04批量查询岗位类型 - batchQueryStationType
        List<StationType> listStationType = null;
        if (listPositionGrade != null && listPositionGrade.size() > 0) {
            BatchQueryStationTypeReq batchQueryStationTypeReq = new BatchQueryStationTypeReq();
            batchQueryStationTypeReq.setOrgStationTypeList(listPositionGrade.stream()
                    .map(item -> item.getStationTypeId())
                    .collect(Collectors.toList()));//sourceId:54355_1
            batchQueryStationTypeReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:54360_1

            /*1-3-04批量查询岗位类型[1651]   */
            listStationType = mStationTypeService.batchQueryStationType(batchQueryStationTypeReq);


        }

//步骤4: 1-3-16批量查询组织架构类型字典列表	 - batchQueryOrgClassList
        List<TypeDictionary> listTypeDictionary = null;
        if (listPosition != null && listPosition.size() > 0) {
            BatchQueryOrgClassListReq batchQueryOrgClassListReq = new BatchQueryOrgClassListReq();
            batchQueryOrgClassListReq.setOrgClassList(listPosition.stream()
                    .map(item -> item.getTypeDictionaryId())
                    .collect(Collectors.toList()));//sourceId:54364_1

            /*1-3-16批量查询组织架构类型字典列表	[1150]   */
            listTypeDictionary = mTypeDictionaryService.batchQueryOrgClassList(batchQueryOrgClassListReq);


        }

//步骤5: 1-3-07批量查询岗位列表 - batchQueryStationList
        List<Station> listStation = null;
        if (listPosition != null && listPosition.size() > 0) {
            BatchQueryStationListReq batchQueryStationListReq = new BatchQueryStationListReq();
            batchQueryStationListReq.setStationList(listPosition.stream()
                    .map(item -> item.getStationId())
                    .collect(Collectors.toList()));//sourceId:54366_1
            batchQueryStationListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:54367_1

            /*1-3-07批量查询岗位列表[1466]   */
            listStation = mStationService.batchQueryStationList(batchQueryStationListReq);


        }

//步骤6: 1-3-08批量查询职位列表 - batchQueryPostList
        List<Post> listPost = null;
        if (listStation != null && listStation.size() > 0) {
            BatchQueryPostListReq batchQueryPostListReq = new BatchQueryPostListReq();
            batchQueryPostListReq.setPostList(listStation.stream()
                    .map(item -> item.getPostId())
                    .collect(Collectors.toList()));//sourceId:54377_1
            batchQueryPostListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:54378_1

            /*1-3-08批量查询职位列表[1467]   */
            listPost = mPostService.batchQueryPostList(batchQueryPostListReq);


        }

//步骤7: 1-3-11批量查询组织部门职务列表 - batchQueryOrgDeptPositionList
        List<DeptPositionRelationship> listDeptPositionRelationship = null;
        if (listInductionRecord != null && listInductionRecord.size() > 0) {
            BatchQueryOrgDeptPositionListReq batchQueryOrgDeptPositionListReq = new BatchQueryOrgDeptPositionListReq();
            batchQueryOrgDeptPositionListReq.setOrgDeptPositionList(listInductionRecord.stream()
                    .map(item -> item.getPositionId())
                    .collect(Collectors.toList()));//sourceId:54390_1
            batchQueryOrgDeptPositionListReq.setOrganizationId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOrganizationId());//CURRENT_ORGID//sourceId:54385_1
            batchQueryOrgDeptPositionListReq.setOrgTypeCode("DEPARTMENT");//sourceId:54383_1
            batchQueryOrgDeptPositionListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:54386_1

            /*1-3-11批量查询组织部门职务列表[1600]   */
            listDeptPositionRelationship = mDeptPositionRelationshipService.batchQueryOrgDeptPositionList(batchQueryOrgDeptPositionListReq);


        }

//步骤8: M合并职位岗位(特殊方法） - generateMergePostStation
        //ModelCode: collectionsAggregation
        GenerateMergePostStationRespDto collectionsAggregationRes = null;
        if (listStation != null && listStation.size() > 0) {
            GenerateMergePostStationReqDto collectionsAggregationReq = new GenerateMergePostStationReqDto();
            collectionsAggregationReq.setStationList(listStation.stream().map(item -> BeanUtil.toBean(item, StationDto.class)).collect(Collectors.toList()));//sourceId:54441_1
            collectionsAggregationReq.setPostList(listPost.stream().map(item -> BeanUtil.toBean(item, PostDto.class)).collect(Collectors.toList()));//sourceId:54442_1

            /*M合并职位岗位(特殊方法）[1791]  入参多个数据集，按照聚合标识得到一个新的数据集 */
            collectionsAggregationRes = nbInductionRecord.generateMergePostStation(collectionsAggregationReq);


        }

//步骤9: M合并职级岗位类型（特殊方法） - generateMergePostGradesStationType
        //ModelCode: collectionsAggregation
        GenerateMergePostGradesStationTypeRespDto collectionsAggregationRes_2 = null;
        if (listPositionGrade != null && listPositionGrade.size() > 0) {
            GenerateMergePostGradesStationTypeReqDto collectionsAggregationReq_1 = new GenerateMergePostGradesStationTypeReqDto();
            collectionsAggregationReq_1.setOrgPositionGradeList(listPositionGrade.stream().map(item -> BeanUtil.toBean(item, OrgPositionGradeDto.class)).collect(Collectors.toList()));//sourceId:54462_1
            collectionsAggregationReq_1.setOrgStationTypeList(listStationType.stream().map(item -> BeanUtil.toBean(item, OrgStationTypeDto.class)).collect(Collectors.toList()));//sourceId:54463_1

            /*M合并职级岗位类型（特殊方法）[1793]  入参多个数据集，按照聚合标识得到一个新的数据集 */
            collectionsAggregationRes_2 = nbInductionRecord.generateMergePostGradesStationType(collectionsAggregationReq_1);


        }

//步骤10: 1-3-13批量修改就职记录 - batchUpdateInductionRecord
        boolean bOOLEAN;
        if (listInductionRecord != null && listInductionRecord.size() > 0) {
            List<InductionRecord> listInductionRecord_2 = new ArrayList<>();
            listInductionRecord_2 = listInductionRecord;
            ;//sourceId:54393_1

            /*1-3-13批量修改就职记录[1647]   */
            bOOLEAN = mInductionRecordService.batchUpdateInductionRecord(listInductionRecord_2);


        }

        BatchUpdateInductionRecordRespDto retData = new BatchUpdateInductionRecordRespDto();


        return retData;
    }

    /**
     * D1-3查就职记录列表[1505]
     * gen by moon at 9/21/2023, 11:59:17 PM
     */
    @Trace(operationName = "D1-3查就职记录列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryInductionRecordListRespDto queryInductionRecordList(QueryInductionRecordListReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
//步骤0: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        if (reqDto != null) {
            queryInductionRecordListReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:40662_1
            queryInductionRecordListReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:40669_1
            queryInductionRecordListReq.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:40667_1
            queryInductionRecordListReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:40663_1
            queryInductionRecordListReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:40661_1
            queryInductionRecordListReq.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:40672_1
            queryInductionRecordListReq.setDeptPositionRelationshipId(reqDto.getDeptPositionRelationshipId());//SimpleFieldAssign//sourceId:40673_1
            queryInductionRecordListReq.setPositionGradeId(reqDto.getPositionGradeId());//SimpleFieldAssign//sourceId:40674_1
            queryInductionRecordListReq.setPositionGradeName(reqDto.getPositionGradeName());//SimpleFieldAssign//sourceId:40676_1
            queryInductionRecordListReq.setTypeDictionaryId(reqDto.getTypeDictionaryId());//SimpleFieldAssign//sourceId:40677_1
            queryInductionRecordListReq.setStationId(reqDto.getStationId());//SimpleFieldAssign//sourceId:40678_1
            queryInductionRecordListReq.setPostId(reqDto.getPostId());//SimpleFieldAssign//sourceId:40679_1
            queryInductionRecordListReq.setStationTypeId(reqDto.getStationTypeId());//SimpleFieldAssign//sourceId:40680_1
            queryInductionRecordListReq.setStationGradeId(reqDto.getStationGradeId());//SimpleFieldAssign//sourceId:40681_1
            queryInductionRecordListReq.setDirectorInductionRecordId(reqDto.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:40684_1
            queryInductionRecordListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:40664_1
            queryInductionRecordListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:40688_1
            queryInductionRecordListReq.setIsEditing(reqDto.getIsEditing());//SimpleFieldAssign//sourceId:40690_1
            queryInductionRecordListReq.setArchivngType(reqDto.getArchivngType());//SimpleFieldAssign//sourceId:1132317_1
            queryInductionRecordListReq.setUpdateStatus(reqDto.getUpdateStatus());//SimpleFieldAssign//sourceId:40692_1
            queryInductionRecordListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:49630_1
        }

        /*1-3-13查询就职记录列表[166]   */

        listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

        QueryInductionRecordListRespDto retData = new QueryInductionRecordListRespDto();
        retData.setOrgInductionRecordList(listInductionRecord_1.stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:40660_1


        return retData;
    }

    /**
     * D1-3撤销想存档就职记录[1478]
     * gen by moon at 10/2/2022, 12:07:50 AM
     */
    @Trace(operationName = "D1-3撤销想存档就职记录")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public UndoToArchiveInductionRecordRespDto undoToArchiveInductionRecord(UndoToArchiveInductionRecordReqDto reqDto) {


        //步骤0: 1-3-13修改就职记录 - updateInductionRecord
        boolean bOOLEAN;
        InductionRecord inductionRecord = new InductionRecord();
        inductionRecord.setInductionEndTime(CommonFunctionHelper.getFutureTime());//FUTURE_CURRENT_TIME//sourceId:38965_1
        inductionRecord.setArchivngType("NOT_ARCHIVE");//sourceId:38966_1
        inductionRecord.setIsUpdate("FALSE");//sourceId:281846_1
        inductionRecord.setUpdateStatus("UNCHANGED");//sourceId:281847_1
        inductionRecord.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:38967_1
        inductionRecord.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:38968_1
        if (reqDto != null) {
            inductionRecord.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:38964_1
        }

        /*1-3-13修改就职记录（撤销想存档）[163]   */
        Assert.isNull(inductionRecord.getInductionRecordId(), "D1-3撤销想存档就职记录-1-3-13修改就职记录（撤销想存档）-就职记录ID不能为空", false);
        Assert.isNull(inductionRecord.getInductionEndTime(), "D1-3撤销想存档就职记录-1-3-13修改就职记录（撤销想存档）-就职结束时间不能为空", false);
        Assert.isNull(inductionRecord.getArchivngType(), "D1-3撤销想存档就职记录-1-3-13修改就职记录（撤销想存档）-存档类型不能为空", false);
        Assert.isNull(inductionRecord.getIsUpdate(), "D1-3撤销想存档就职记录-1-3-13修改就职记录（撤销想存档）-批次下是否更新不能为空", false);
        Assert.isNull(inductionRecord.getUpdateStatus(), "D1-3撤销想存档就职记录-1-3-13修改就职记录（撤销想存档）-批次下更新状态不能为空", false);
        Assert.isNull(inductionRecord.getOperationInductionId(), "D1-3撤销想存档就职记录-1-3-13修改就职记录（撤销想存档）-操作人就职记录ID不能为空", false);
        Assert.isNull(inductionRecord.getOperateTime(), "D1-3撤销想存档就职记录-1-3-13修改就职记录（撤销想存档）-操作时间不能为空", false);
        bOOLEAN = mInductionRecordService.updateInductionRecord(inductionRecord);


//步骤1: 1-2-10查询身份人员资料详情 - queryBeginMembInfoDetail
        OriginalRoleMemberInfo originalRoleMemberInfo = null;
        QueryBeginMembInfoDetailReq queryBeginMembInfoDetailReq = new QueryBeginMembInfoDetailReq();
        if (reqDto != null) {
            queryBeginMembInfoDetailReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:51683_1
        }

        /*1-2-10查询身份人员资料详情（查是否兼职）[116]   */
        Assert.isNull(queryBeginMembInfoDetailReq.getOriginalRoleMemberId(), "D1-3撤销想存档就职记录-1-2-10查询身份人员资料详情（查是否兼职）-身份人员ID不能为空", false);
        originalRoleMemberInfo = mOriginalRoleMemberInfoService.queryBeginMembInfoDetail(queryBeginMembInfoDetailReq);


//步骤2: 1-3-13查询就职记录详情 - queryinductionRecordDetail
        InductionRecord inductionRecord_1 = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        if (reqDto != null) {
            queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:38978_1
        }

        /*1-3-13查询就职记录详情（查编制）[165]   */
        Assert.isNull(queryinductionRecordDetailReq.getInductionRecordId(), "D1-3撤销想存档就职记录-1-3-13查询就职记录详情（查编制）-就职记录ID不能为空", false);
        inductionRecord_1 = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq);


//步骤3: 1-3-15修改编制 - updateStaffing
        boolean bOOLEAN_1;
        if (inductionRecord_1 != null && inductionRecord_1 != null && inductionRecord_1.getStaffingId() != null) {
            Staffing staffing = new Staffing();
            staffing.setInductionState("TRUE");//sourceId:38981_1
            staffing.setTempLock("FALSE");//sourceId:38983_1
            if (inductionRecord_1 != null) {
                staffing.setStaffingId(inductionRecord_1.getStaffingId());//SimpleFieldAssign//sourceId:38980_1
            }
            if (originalRoleMemberInfo != null) {
                staffing.setIsUsedbyPartTime(originalRoleMemberInfo.getIsPtJob());//SimpleFieldAssign//sourceId:51623_1
            }

            /*1-3-15修改编制（重新占编制）[186]   */
            Assert.isNull(staffing.getStaffingId(), "D1-3撤销想存档就职记录-1-3-15修改编制（重新占编制）-编制ID不能为空", false);
            Assert.isNull(staffing.getInductionState(), "D1-3撤销想存档就职记录-1-3-15修改编制（重新占编制）-编制是否在职不能为空", false);
            Assert.isNull(staffing.getIsUsedbyPartTime(), "D1-3撤销想存档就职记录-1-3-15修改编制（重新占编制）-是否兼职占用不能为空", false);
            Assert.isNull(staffing.getTempLock(), "D1-3撤销想存档就职记录-1-3-15修改编制（重新占编制）-临时锁定状态不能为空", false);
            bOOLEAN_1 = mStaffingService.updateStaffing(staffing);


        }

//步骤4: D1-1撤销存档底层变更字段(公共) - undoArchiveBaseChangeColCom
        UndoArchiveBaseChangeColComRespDto undoArchiveBaseChangeColComRespDto = null;
        UndoArchiveBaseChangeColComReqDto undoArchiveBaseChangeColComReqDto = new UndoArchiveBaseChangeColComReqDto();
        undoArchiveBaseChangeColComReqDto.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:181647_1
        if (reqDto != null) {
            undoArchiveBaseChangeColComReqDto.setEntityId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:181648_1
        }

        /*D1-1撤销存档底层变更字段(公共)[3802]   */
        Assert.isNull(undoArchiveBaseChangeColComReqDto.getTableTypeCode(), "D1-3撤销想存档就职记录-D1-1撤销存档底层变更字段(公共)-内容表类型编码不能为空", false);
        Assert.isNull(undoArchiveBaseChangeColComReqDto.getEntityId(), "D1-3撤销想存档就职记录-D1-1撤销存档底层变更字段(公共)-内容表主键ID不能为空", false);
        undoArchiveBaseChangeColComRespDto = changeColumnService.undoArchiveBaseChangeColCom(undoArchiveBaseChangeColComReqDto);


        UndoToArchiveInductionRecordRespDto retData = new UndoToArchiveInductionRecordRespDto();


        return retData;
    }

    /**
     * D1-3查询非直属就职记录列表[1476]
     * gen by moon at 10/2/2022, 12:07:32 AM
     */
    @Trace(operationName = "D1-3查询非直属就职记录列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryUndoDirectInductionRecordListRespDto queryUndoDirectInductionRecordList(QueryUndoDirectInductionRecordListReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
        List<OriginalRoleMember> listOriginalRoleMember_1 = new ArrayList<>();
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_1 = new ArrayList<>();
//步骤0: 1-3-09查询部门列表 - queryDeptList
        List<Dept> listDept = new ArrayList<>();
        QueryDeptListReq queryDeptListReq = new QueryDeptListReq();
        if (reqDto != null) {
            queryDeptListReq.setParentDeptId(reqDto.getParentDeptId());//SimpleFieldAssign//sourceId:38208_1
            queryDeptListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:38209_1
            queryDeptListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:38696_1
        }

        /*1-3-09查询部门列表[217] 特殊模式：查询多级部门集合  */
        Assert.isNull(queryDeptListReq.getParentDeptId(), "D1-3查询非直属就职记录列表-1-3-09查询部门列表-父级部门ID不能为空", false);
        listDept = mDeptService.queryDeptList(queryDeptListReq);


//步骤1: 1-3-13批量查非直属就职记录 - batchQueryUndoDirectInductionRecord
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        if (listDept != null && listDept.size() > 0) {
            BatchQueryUndoDirectInductionRecordReq batchQueryUndoDirectInductionRecordReq = new BatchQueryUndoDirectInductionRecordReq();
            batchQueryUndoDirectInductionRecordReq.setOrgInductionRecordList(listDept.stream().map(item -> item.getDeptId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:38219_1
            batchQueryUndoDirectInductionRecordReq.setInductionUnitTypeCode("DEPT");//sourceId:38220_1
            if (reqDto != null) {
                batchQueryUndoDirectInductionRecordReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:38221_1
                batchQueryUndoDirectInductionRecordReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:38695_1
                batchQueryUndoDirectInductionRecordReq.setUpdateStatus(reqDto.getUpdateStatus());//SimpleFieldAssign//sourceId:50986_1
            }

            /*1-3-13批量查非直属就职记录[1477]   */
            Assert.isNull(batchQueryUndoDirectInductionRecordReq.getInductionUnitTypeCode(), "D1-3查询非直属就职记录列表-1-3-13批量查非直属就职记录-就职单位类型实例不能为空", false);
            listInductionRecord = mInductionRecordService.batchQueryUndoDirectInductionRecord(batchQueryUndoDirectInductionRecordReq);


            listInductionRecord_1 = listInductionRecord;
        }

//步骤2: 1-2-09批量查询身份人员列表	 - batchQueryBeginMemberList
        List<OriginalRoleMember> listOriginalRoleMember = new ArrayList<>();
        if (listInductionRecord != null && listInductionRecord.size() > 0) {
            BatchQueryBeginMemberListReq batchQueryBeginMemberListReq = new BatchQueryBeginMemberListReq();
            batchQueryBeginMemberListReq.setBeginMemberList(listInductionRecord.stream().map(item -> item.getOriginalRoleMemberId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:38322_1
            batchQueryBeginMemberListReq.setIsInvalid("FALSE");//sourceId:38325_1

            /*1-2-09批量查询身份人员列表	[1181]   */
            Assert.isNull(batchQueryBeginMemberListReq.getIsInvalid(), "D1-3查询非直属就职记录列表-1-2-09批量查询身份人员列表	-是否失效不能为空", false);
            listOriginalRoleMember = mOriginalRoleMemberService.batchQueryBeginMemberList(batchQueryBeginMemberListReq);


            listOriginalRoleMember_1 = listOriginalRoleMember;
        }

//步骤3: 1-2-10批量查询身份人员资料列表 - batchQueryBeginMembInfoList
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo = new ArrayList<>();
        if (listInductionRecord != null && listInductionRecord.size() > 0) {
            BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq = new BatchQueryBeginMembInfoListReq();
            batchQueryBeginMembInfoListReq.setBeginMembInfoList(listInductionRecord.stream().map(item -> item.getOriginalRoleMemberId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:38693_1

            /*1-2-10批量查询身份人员资料列表[1014]   */

            listOriginalRoleMemberInfo = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq);


            listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo;
        }

//步骤4: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        if (listOriginalRoleMember != null && listOriginalRoleMember.size() > 0) {
            BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
            batchQueryUserinfoListReq.setUserList(listInductionRecord.stream().map(item -> item.getUserId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:38223_1

            /*1-2-02批量查询个人资料列表[52]   */

            listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq);


            listUserinfo_1 = listUserinfo;
        }

        QueryUndoDirectInductionRecordListRespDto retData = new QueryUndoDirectInductionRecordListRespDto();
        //数据集融合  MoreListToOneSource
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            for (InductionRecord inductionRecord : listInductionRecord_1) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:85904_2
                retElm.setPositionIdName(inductionRecord.getPositionIdName());//SimpleFieldAssign//sourceId:87382_2
                retData.getOrgInductionRecordList().add(retElm);
                if (listOriginalRoleMember_1 != null) {
                    for (OriginalRoleMember originalRoleMember : listOriginalRoleMember_1) {
                        if (originalRoleMember.getOriginalRoleMemberId().equals(inductionRecord.getOriginalRoleMemberId())) {
                            retElm.setOriginalRoleMemberId(originalRoleMember.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:78404_2
                            retElm.setUserId(originalRoleMember.getUserId());//SimpleFieldAssign//sourceId:78405_2
                            retElm.setIsTransaction(originalRoleMember.getIsTransaction());//SimpleFieldAssign//sourceId:78406_2
                        }
                    }
                }

                if (listUserinfo_1 != null) {
                    for (Userinfo userinfo : listUserinfo_1) {
                        if (userinfo.getUserId().equals(inductionRecord.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:17505_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:17502_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:17504_2
                        }
                    }
                }

                if (listOriginalRoleMemberInfo_1 != null) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(inductionRecord.getOriginalRoleMemberId())) {
                            retElm.setIsPtJob(originalRoleMemberInfo.getIsPtJob());//SimpleFieldAssign//sourceId:78407_2
                        }
                    }
                }

            }
        }//sourceId:38225_1


        return retData;
    }

    /**
     * D1-3存档就职记录[1473]
     * gen by moon at 9/22/2023, 6:27:22 PM
     */
    @Trace(operationName = "D1-3存档就职记录")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ArchiveInductionRecordRespDto archiveInductionRecord(ArchiveInductionRecordReqDto reqDto) {


        //virtualUsage 1-3-13查询就职记录详情（查编制）  48859
        InductionRecord inductionRecord = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        if (reqDto != null) {
            queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:38828_1_48859
        }

        /*1-3-13查询就职记录详情（查编制）[165]   */
        Assert.isNull(queryinductionRecordDetailReq.getInductionRecordId(), "D1-3存档就职记录-1-3-13查询就职记录详情（查编制）-就职记录ID不能为空", false);
        inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


//virtualUsage 1-3-13修改就职记录（想存档）  48858
        boolean bOOLEAN;
        InductionRecord inductionRecord_2 = new InductionRecord();
        inductionRecord_2.setArchivngType("TOBE_ARCHIVING");//sourceId:38834_1_48858
        inductionRecord_2.setIsUpdate("TRUE");//sourceId:281845_1_48858
        inductionRecord_2.setUpdateStatus("ARCHIVE");//sourceId:169390_1_48858
        inductionRecord_2.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:38138_1_48858
        inductionRecord_2.setArchiveInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:38970_1_48858
        inductionRecord_2.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:38139_1_48858
        inductionRecord_2.setArchiveTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:38971_1_48858
        if (reqDto != null) {
            inductionRecord_2.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:38135_1_48858
            inductionRecord_2.setInductionEndTime(reqDto.getInductionEndTime());//SimpleFieldAssign//sourceId:38136_1_48858
        }

        /*1-3-13修改就职记录（想存档）[163]   */
        Assert.isNull(inductionRecord_2.getInductionRecordId(), "D1-3存档就职记录-1-3-13修改就职记录（想存档）-就职记录ID不能为空", false);
        Assert.isNull(inductionRecord_2.getInductionEndTime(), "D1-3存档就职记录-1-3-13修改就职记录（想存档）-就职结束时间不能为空", false);
        Assert.isNull(inductionRecord_2.getArchivngType(), "D1-3存档就职记录-1-3-13修改就职记录（想存档）-存档类型不能为空", false);
        Assert.isNull(inductionRecord_2.getIsUpdate(), "D1-3存档就职记录-1-3-13修改就职记录（想存档）-批次下是否更新不能为空", false);
        Assert.isNull(inductionRecord_2.getUpdateStatus(), "D1-3存档就职记录-1-3-13修改就职记录（想存档）-批次下更新状态不能为空", false);
        Assert.isNull(inductionRecord_2.getOperationInductionId(), "D1-3存档就职记录-1-3-13修改就职记录（想存档）-操作人就职记录ID不能为空", false);
        Assert.isNull(inductionRecord_2.getArchiveInductionId(), "D1-3存档就职记录-1-3-13修改就职记录（想存档）-存档人就职记录ID不能为空", false);
        Assert.isNull(inductionRecord_2.getOperateTime(), "D1-3存档就职记录-1-3-13修改就职记录（想存档）-操作时间不能为空", false);
        Assert.isNull(inductionRecord_2.getArchiveTime(), "D1-3存档就职记录-1-3-13修改就职记录（想存档）-存档时间不能为空", false);
        bOOLEAN = mInductionRecordService.updateInductionRecord(inductionRecord_2)/*vcase invoke 本地 method 方法调用;*/;


        if ((inductionRecord != null && inductionRecord.getStaffingId() != null)) {
            //if(1-3-13查询就职记录详情（查编制）.编制ID 值不等于空 )  48861

            boolean bOOLEAN_1;
            if (inductionRecord != null && inductionRecord != null && inductionRecord.getStaffingId() != null) {
                Staffing staffing = new Staffing();
                staffing.setInductionState("FALSE");//sourceId:38831_1_48862
                staffing.setTempLock("TRUE");//sourceId:38984_1_48862
                if (inductionRecord != null) {
                    staffing.setStaffingId(inductionRecord.getStaffingId());//SimpleFieldAssign//sourceId:38830_1_48862
                }

                /*1-3-15修改编制（存档释放）[186] 依赖前端的是否是主岗来固化入参  */
                Assert.isNull(staffing.getStaffingId(), "D1-3存档就职记录-1-3-15修改编制（存档释放）-编制ID不能为空", false);
                Assert.isNull(staffing.getInductionState(), "D1-3存档就职记录-1-3-15修改编制（存档释放）-编制是否在职不能为空", false);
                Assert.isNull(staffing.getIsUsedbyPartTime(), "D1-3存档就职记录-1-3-15修改编制（存档释放）-是否兼职占用不能为空", false);
                Assert.isNull(staffing.getTempLock(), "D1-3存档就职记录-1-3-15修改编制（存档释放）-临时锁定状态不能为空", false);
                bOOLEAN_1 = mStaffingService.updateStaffing(staffing)/*vcase invoke 本地 method 方法调用;*/;


            }
        }
//virtualUsage 1-1-01查询底层框架服务批次详情  48860
        Batch batch = null;
        if (inductionRecord != null) {
            QueryBaseBatchDetailReq queryBaseBatchDetailReq = new QueryBaseBatchDetailReq();
            queryBaseBatchDetailReq.setPurposeTypeCode("ORG");//sourceId:285497_1_48860
            queryBaseBatchDetailReq.setSubjectLifeCycle("EDITING");//sourceId:285499_1_48860
            queryBaseBatchDetailReq.setIsNewbatch("TRUE");//sourceId:285500_1_48860
            if (inductionRecord != null) {
                queryBaseBatchDetailReq.setAscriptionObjectId(inductionRecord.getOrganizationId());//SimpleFieldAssign//sourceId:285498_1_48860
            }

            /*1-1-01查询底层框架服务批次详情[44]   */
            Assert.isNull(queryBaseBatchDetailReq.getPurposeTypeCode(), "D1-3存档就职记录-1-1-01查询底层框架服务批次详情-用途类型编码不能为空", false);
            Assert.isNull(queryBaseBatchDetailReq.getAscriptionObjectId(), "D1-3存档就职记录-1-1-01查询底层框架服务批次详情-归属对象ID不能为空", false);
            Assert.isNull(queryBaseBatchDetailReq.getSubjectLifeCycle(), "D1-3存档就职记录-1-1-01查询底层框架服务批次详情-主体生命周期不能为空", false);
            Assert.isNull(queryBaseBatchDetailReq.getIsNewbatch(), "D1-3存档就职记录-1-1-01查询底层框架服务批次详情-是否最新批次不能为空", false);
            batch = mBatchService.queryBaseBatchDetail(queryBaseBatchDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        }
//virtualUsage 1-2-02查询个人资料（查姓名）  48863
        Userinfo userinfo = null;
        if (inductionRecord != null) {
            QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
            if (inductionRecord != null) {
                queryUserinfoDetailReq.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:181578_1_48863
            }

            /*1-2-02查询个人资料（查姓名）[155]   */
            Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-3存档就职记录-1-2-02查询个人资料（查姓名）-账号不能为空", false);
            userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        }
//virtualUsage D1-1存档底层变更字段(就职记录变更记录）  48864
        ArchiveBaseChangeColComRespDto archiveBaseChangeColComRespDto = null;
        if (userinfo != null && inductionRecord != null && batch != null) {
            ArchiveBaseChangeColComReqDto archiveBaseChangeColComReqDto = new ArchiveBaseChangeColComReqDto();
            archiveBaseChangeColComReqDto.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:181643_1_48864
            archiveBaseChangeColComReqDto.setEntityName("inductionRecordId");//CUSTOM_CONVENTION//sourceId:181541_1_48864
            archiveBaseChangeColComReqDto.setObjectPropertyCode("inductionRecordId");//CUSTOM_CONVENTION//sourceId:181542_1_48864
            archiveBaseChangeColComReqDto.setObjectPropertyName("离岗");//CUSTOM_CONVENTION//sourceId:181543_1_48864
            archiveBaseChangeColComReqDto.setOriColumnContent("数据正常");//CUSTOM_CONVENTION//sourceId:181546_1_48864
            archiveBaseChangeColComReqDto.setSubjectTypeCode("ORG_LOG_NAV");//sourceId:181547_1_48864
            archiveBaseChangeColComReqDto.setSubjectChangeType("ARCHIVE_INDUCTION_RECORD");//CUSTOM_CONVENTION//sourceId:181548_1_48864
            archiveBaseChangeColComReqDto.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:181549_1_48864
            if (reqDto != null) {
                archiveBaseChangeColComReqDto.setEntityId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:181644_1_48864
                archiveBaseChangeColComReqDto.setMetaDataColumnContent(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:181544_1_48864
            }
            if (userinfo != null) {
                archiveBaseChangeColComReqDto.setColumnContent(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:181545_1_48864
            }
            if (inductionRecord != null) {
                archiveBaseChangeColComReqDto.setObjectId(inductionRecord.getOrganizationId());//SimpleFieldAssign//sourceId:181550_1_48864
                archiveBaseChangeColComReqDto.setSubjectContAffiliationParentCont(inductionRecord.getDeptShortName());//SimpleFieldAssign//sourceId:287376_1_48864
            }
            if (batch != null) {
                archiveBaseChangeColComReqDto.setBatchId(batch.getBatchId());//SimpleFieldAssign//sourceId:181551_1_48864
            }

            /*D1-1存档底层变更字段(就职记录变更记录）[3535]   */
            Assert.isNull(archiveBaseChangeColComReqDto.getTableTypeCode(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-内容表类型编码不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getEntityId(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-内容表主键ID不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getEntityName(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-内容表主键行为日志英文名称不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getObjectPropertyCode(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-变更字段英文名不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getObjectPropertyName(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-变更字段行为日志名称不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getMetaDataColumnContent(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-变更字段原始值不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getColumnContent(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-变更后字段中文内容不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getOriColumnContent(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-变更前字段中文内容不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getSubjectTypeCode(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-主体类型编码不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getSubjectChangeType(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-主体变更日志类型不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getObjectTypeCode(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-归属对象类型编码不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getObjectId(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-归属对象内容ID不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getBatchId(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-批次ID不能为空", false);
            Assert.isNull(archiveBaseChangeColComReqDto.getSubjectContAffiliationParentCont(), "D1-3存档就职记录-D1-1存档底层变更字段(就职记录变更记录）-主体内容归属父对象不能为空", false);
            archiveBaseChangeColComRespDto = changeColumnService.archiveBaseChangeColCom(archiveBaseChangeColComReqDto)/*vcase invoke isSameApp*/;


        }
        if ((inductionRecord != null && inductionRecord.getIsDirector() != null && inductionRecord.getIsDirector().equals("TRUE"))) {
            //if(1-3-13查询就职记录详情（查编制）.是否主管 等于 是)  48865

//ModelCode: receptionService
            QueryReceiveFieldDetailRespDto receptionServiceRes = null;
            QueryReceiveFieldDetailReqDto receptionServiceReq = new QueryReceiveFieldDetailReqDto();
            receptionServiceReq.setCustomField("--");//CUSTOM_CONVENTION//sourceId:1132822_1_48866

            /*M1约定清除字段值[3715]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq.getCustomField(), "D1-3存档就职记录-M1约定清除字段值-自定义字段不能为空", false);
            receptionServiceRes = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq);


            if ((inductionRecord != null && inductionRecord.getIsXzDirector() != null && inductionRecord.getIsXzDirector().equals("TRUE"))) {
                //if(1-3-13查询就职记录详情（查编制）.是否行政主管 等于 是)  48867

                boolean bOOLEAN_2;
                if (inductionRecord != null) {
                    Dept dept = new Dept();
                    if (inductionRecord != null) {
                        dept.setDeptId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:1132819_1_48869
                    }
                    if (receptionServiceRes != null) {
                        dept.setDirectorIdCardName(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1132820_1_48869
                    }

                    /*1-3-09清除部门主管姓名[215]   */
                    Assert.isNull(dept.getDeptId(), "D1-3存档就职记录-1-3-09清除部门主管姓名-部门ID不能为空", false);
                    bOOLEAN_2 = mDeptService.updateDept(dept)/*vcase invoke 本地 method 方法调用;*/;


                }
            } else if ((inductionRecord != null && inductionRecord.getIsXzDirector() != null && inductionRecord.getIsXzDirector().equals("FALSE"))) {
                //elseif(1-3-13查询就职记录详情（查编制）.是否行政主管 等于 否)  48868

                boolean bOOLEAN_3;
                if (inductionRecord != null) {
                    Dept dept_1 = new Dept();
                    if (inductionRecord != null) {
                        dept_1.setDeptId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:1132819_1_48870
                    }
                    if (receptionServiceRes != null) {
                        dept_1.setPartyAndYouthDirectorIdCardName(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1132821_1_48870
                    }

                    /*1-3-09清除部门主管姓名[215]   */
                    Assert.isNull(dept_1.getDeptId(), "D1-3存档就职记录-1-3-09清除部门主管姓名-部门ID不能为空", false);
                    bOOLEAN_3 = mDeptService.updateDept(dept_1)/*vcase invoke 本地 method 方法调用;*/;


                }
            }
        }
        ArchiveInductionRecordRespDto retData = new ArchiveInductionRecordRespDto();


        return retData;
    }

    /**
     * D1-3调岗就职记录[1471]
     * gen by moon at 4/1/2024, 1:39:03 AM
     */
    @Trace(operationName = "D1-3调岗就职记录")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public PostTransferInductionRecordRespDto postTransferInductionRecord(PostTransferInductionRecordReqDto reqDto) {


        String string_1 = null;
//virtualUsage D1判断新增就职记录操作可用(公共)  12449
        JudgeAddInductionRecordUsableComRespDto judgeAddInductionRecordUsableComRespDto = null;
        JudgeAddInductionRecordUsableComReqDto judgeAddInductionRecordUsableComReqDto = new JudgeAddInductionRecordUsableComReqDto();
        judgeAddInductionRecordUsableComReqDto.setBatchMgtOperationType("TRAILING_OPERATION");//sourceId:200172_1_12449
        if (reqDto != null) {
            judgeAddInductionRecordUsableComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:194415_1_12449
            judgeAddInductionRecordUsableComReqDto.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:194416_1_12449
            judgeAddInductionRecordUsableComReqDto.setPositionIdName(reqDto.getPositionIdName());//SimpleFieldAssign//sourceId:194420_1_12449
            judgeAddInductionRecordUsableComReqDto.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:194417_1_12449
            judgeAddInductionRecordUsableComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:194418_1_12449
            judgeAddInductionRecordUsableComReqDto.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:194419_1_12449
        }

        /*D1判断新增就职记录操作可用(公共)[3866]   */
        Assert.isNull(judgeAddInductionRecordUsableComReqDto.getOriginalRoleMemberId(), "D1-3调岗就职记录-D1判断新增就职记录操作可用(公共)-身份人员ID不能为空", false);
        Assert.isNull(judgeAddInductionRecordUsableComReqDto.getInductionUnitTypeCode(), "D1-3调岗就职记录-D1判断新增就职记录操作可用(公共)-就职单位类型实例不能为空", false);
        Assert.isNull(judgeAddInductionRecordUsableComReqDto.getEntityId(), "D1-3调岗就职记录-D1判断新增就职记录操作可用(公共)-就职单位对象实例ID不能为空", false);
        Assert.isNull(judgeAddInductionRecordUsableComReqDto.getOrganizationId(), "D1-3调岗就职记录-D1判断新增就职记录操作可用(公共)-组织ID不能为空", false);
        Assert.isNull(judgeAddInductionRecordUsableComReqDto.getBatchMgtOperationType(), "D1-3调岗就职记录-D1判断新增就职记录操作可用(公共)-批次下管理操作类型不能为空", false);
        judgeAddInductionRecordUsableComRespDto = judgeAddInductionRecordUsableCom(judgeAddInductionRecordUsableComReqDto)/*vcase invoke 同服务,同domain*/;


//virtualUsage 1-2-02查询个人资料（查姓名）  9491
        Userinfo userinfo = null;
        QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
        if (reqDto != null) {
            queryUserinfoDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:155040_1_9491
        }

        /*1-2-02查询个人资料（查姓名）[155]   */
        Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-3调岗就职记录-1-2-02查询个人资料（查姓名）-账号不能为空", false);
        userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;
        Assert.isTrue(userinfo == null || userinfo.getPersonalDataId() == null, "找不到数据，系统异常", false);


//virtualUsage D1-执行分析新增就职记录是否主岗(公共)  48746
        ImplementAnalyzeNewInductionRecordIsMajorPositionComRespDto implementAnalyzeNewInductionRecordIsMajorPositionComRespDto = null;
        ImplementAnalyzeNewInductionRecordIsMajorPositionComReqDto implementAnalyzeNewInductionRecordIsMajorPositionComReqDto = new ImplementAnalyzeNewInductionRecordIsMajorPositionComReqDto();
        if (reqDto != null) {
            implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1129147_1_48746
            implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:1129148_1_48746
            implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1129149_1_48746
        }

        /*D1-执行分析新增就职记录是否主岗(公共)[7425]   */
        Assert.isNull(implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.getOriginalRoleMemberId(), "D1-3调岗就职记录-D1-执行分析新增就职记录是否主岗(公共)-身份人员ID不能为空", false);
        Assert.isNull(implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.getInductionUnitTypeCode(), "D1-3调岗就职记录-D1-执行分析新增就职记录是否主岗(公共)-就职单位类型实例不能为空", false);
        Assert.isNull(implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.getOrganizationId(), "D1-3调岗就职记录-D1-执行分析新增就职记录是否主岗(公共)-组织ID不能为空", false);
        implementAnalyzeNewInductionRecordIsMajorPositionComRespDto = implementAnalyzeNewInductionRecordIsMajorPositionCom(implementAnalyzeNewInductionRecordIsMajorPositionComReqDto)/*vcase invoke 同服务,同domain*/;


//virtualUsage D1-2查询中基层部门详情(公共)  65837
        QueryMidBaseCourseDetailComRespDto queryMidBaseCourseDetailComRespDto = null;
        QueryMidBaseCourseDetailComReqDto queryMidBaseCourseDetailComReqDto = new QueryMidBaseCourseDetailComReqDto();
        queryMidBaseCourseDetailComReqDto.setInductionUnitTypeCode("DEPT");//sourceId:1682633_1_65837
        if (reqDto != null) {
            queryMidBaseCourseDetailComReqDto.setDeptId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1682632_1_65837
        }

        /*D1-2查询中基层部门详情(公共)[2604]   */
        Assert.isNull(queryMidBaseCourseDetailComReqDto.getDeptId(), "D1-3调岗就职记录-D1-2查询中基层部门详情(公共)-部门ID不能为空", false);
        Assert.isNull(queryMidBaseCourseDetailComReqDto.getInductionUnitTypeCode(), "D1-3调岗就职记录-D1-2查询中基层部门详情(公共)-就职单位类型实例不能为空", false);
        queryMidBaseCourseDetailComRespDto = orgService.queryMidBaseCourseDetailCom(queryMidBaseCourseDetailComReqDto)/*vcase invoke isSameApp*/;


        if ((judgeAddInductionRecordUsableComRespDto != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel() != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel().equals("STRICT"))) {
            //if(D1判断新增就职记录操作可用(公共).空间组织架构模式 等于 严谨型)  1771

            String string = null;
            if (queryMidBaseCourseDetailComRespDto != null && implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null && judgeAddInductionRecordUsableComRespDto != null) {
                InductionRecord inductionRecord = new InductionRecord();
                inductionRecord.setSubjectLifeCycle("EDITING");//sourceId:37202_1_1772
                inductionRecord.setIsEditing("TRUE");//sourceId:37205_1_1772
                inductionRecord.setIsUpdate("TRUE");//sourceId:37209_1_1772
                inductionRecord.setUpdateStatus("NEW");//sourceId:37210_1_1772
                inductionRecord.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:285692_1_1772
                inductionRecord.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:285693_1_1772
                if (reqDto != null) {
                    inductionRecord.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:37171_1_1772
                    inductionRecord.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:37172_1_1772
                    inductionRecord.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:37173_1_1772
                    inductionRecord.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:37174_1_1772
                    inductionRecord.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:37175_1_1772
                    inductionRecord.setOrganizationName(reqDto.getOrganizationName());//SimpleFieldAssign//sourceId:37176_1_1772
                    inductionRecord.setDeptShortName(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:37208_1_1772
                    inductionRecord.setFirstLetter(reqDto.getFirstLetter());//SimpleFieldAssign//sourceId:37177_1_1772
                    inductionRecord.setIsCustomPosition(reqDto.getIsCustomPosition());//SimpleFieldAssign//sourceId:37180_1_1772
                    inductionRecord.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:37181_1_1772
                    inductionRecord.setOrderNumber(reqDto.getOrderNumber());//SimpleFieldAssign//sourceId:51337_1_1772
                    inductionRecord.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:37187_1_1772
                    inductionRecord.setPositionIdNameId(reqDto.getPositionIdNameId());//SimpleFieldAssign//sourceId:37183_1_1772
                    inductionRecord.setPositionIdName(reqDto.getPositionIdName());//SimpleFieldAssign//sourceId:37184_1_1772
                    inductionRecord.setDirectorInductionRecordId(reqDto.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:37201_1_1772
                    inductionRecord.setInductionStartTime(reqDto.getInductionStartTime());//SimpleFieldAssign//sourceId:37204_1_1772
                    inductionRecord.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:247082_1_1772
                    inductionRecord.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132539_1_1772
                }
                if (queryMidBaseCourseDetailComRespDto != null) {
                    inductionRecord.setPrimaryDeptId(queryMidBaseCourseDetailComRespDto.getPrimaryDeptId());//SimpleFieldAssign//sourceId:1682640_1_1772
                }
                if (implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null) {
                    inductionRecord.setIsMainInduction(implementAnalyzeNewInductionRecordIsMajorPositionComRespDto.getIsMainInduction());//SimpleFieldAssign//sourceId:37179_1_1772
                }
                if (judgeAddInductionRecordUsableComRespDto != null) {
                    inductionRecord.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:37203_1_1772
                }

                /*1-3-13新增就职记录[162]   */
                Assert.isNull(inductionRecord.getInductionUnitTypeCode(), "D1-3调岗就职记录-1-3-13新增就职记录-就职单位类型实例不能为空", false);
                Assert.isNull(inductionRecord.getEntityId(), "D1-3调岗就职记录-1-3-13新增就职记录-就职单位对象实例ID不能为空", false);
                Assert.isNull(inductionRecord.getPrimaryDeptId(), "D1-3调岗就职记录-1-3-13新增就职记录-冗余一级部门ID不能为空", false);
                Assert.isNull(inductionRecord.getOriginalRoleMemberId(), "D1-3调岗就职记录-1-3-13新增就职记录-身份人员ID不能为空", false);
                Assert.isNull(inductionRecord.getUserId(), "D1-3调岗就职记录-1-3-13新增就职记录-个人账号ID不能为空", false);
                Assert.isNull(inductionRecord.getOrganizationId(), "D1-3调岗就职记录-1-3-13新增就职记录-组织ID不能为空", false);
                Assert.isNull(inductionRecord.getOrganizationName(), "D1-3调岗就职记录-1-3-13新增就职记录-冗余组织名称不能为空", false);
                Assert.isNull(inductionRecord.getDeptShortName(), "D1-3调岗就职记录-1-3-13新增就职记录-冗余部门名称不能为空", false);
                Assert.isNull(inductionRecord.getFirstLetter(), "D1-3调岗就职记录-1-3-13新增就职记录-备注首位字母不能为空", false);
                Assert.isNull(inductionRecord.getIsMainInduction(), "D1-3调岗就职记录-1-3-13新增就职记录-是否主岗不能为空", false);
                Assert.isNull(inductionRecord.getIsCustomPosition(), "D1-3调岗就职记录-1-3-13新增就职记录-是否自定义职务不能为空", false);
                Assert.isNull(inductionRecord.getPositionType(), "D1-3调岗就职记录-1-3-13新增就职记录-职务性质不能为空", false);
                Assert.isNull(inductionRecord.getOrderNumber(), "D1-3调岗就职记录-1-3-13新增就职记录-排序不能为空", false);
                Assert.isNull(inductionRecord.getPositionIdName(), "D1-3调岗就职记录-1-3-13新增就职记录-必选冗余职务名称不能为空", false);
                Assert.isNull(inductionRecord.getBatchId(), "D1-3调岗就职记录-1-3-13新增就职记录-批次ID不能为空", false);
                Assert.isNull(inductionRecord.getIsDirector(), "D1-3调岗就职记录-1-3-13新增就职记录-是否主管不能为空", false);
                Assert.isNull(inductionRecord.getSubjectLifeCycle(), "D1-3调岗就职记录-1-3-13新增就职记录-主体生命周期不能为空", false);
                Assert.isNull(inductionRecord.getIsEditing(), "D1-3调岗就职记录-1-3-13新增就职记录-是否未来不能为空", false);
                Assert.isNull(inductionRecord.getIsUpdate(), "D1-3调岗就职记录-1-3-13新增就职记录-批次下是否更新不能为空", false);
                Assert.isNull(inductionRecord.getUpdateStatus(), "D1-3调岗就职记录-1-3-13新增就职记录-批次下更新状态不能为空", false);
                Assert.isNull(inductionRecord.getSpaceId(), "D1-3调岗就职记录-1-3-13新增就职记录-创建于空间ID不能为空", false);
                Assert.isNull(inductionRecord.getAppId(), "D1-3调岗就职记录-1-3-13新增就职记录-创建于联盟应用ID不能为空", false);
                string = mInductionRecordService.addInductionRecord(inductionRecord)/*vcase invoke 本地 method 方法调用;*/;


                string_1 = string;
            }
            boolean bOOLEAN;
            InductionRecord inductionRecord_1 = new InductionRecord();
            inductionRecord_1.setArchivngType("TOBE_ARCHIVING");//sourceId:37374_1_1773
            inductionRecord_1.setIsUpdate("TRUE");//sourceId:37375_1_1773
            inductionRecord_1.setUpdateStatus("ARCHIVE");//sourceId:37376_1_1773
            inductionRecord_1.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:37377_1_1773
            inductionRecord_1.setArchiveInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:37378_1_1773
            inductionRecord_1.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:37379_1_1773
            inductionRecord_1.setArchiveTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:37380_1_1773
            if (reqDto != null) {
                inductionRecord_1.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:37372_1_1773
                inductionRecord_1.setInductionEndTime(reqDto.getInductionEndTime());//SimpleFieldAssign//sourceId:37373_1_1773
            }

            /*1-3-13修改就职记录[163]   */
            Assert.isNull(inductionRecord_1.getInductionRecordId(), "D1-3调岗就职记录-1-3-13修改就职记录-就职记录ID不能为空", false);
            Assert.isNull(inductionRecord_1.getInductionEndTime(), "D1-3调岗就职记录-1-3-13修改就职记录-就职结束时间不能为空", false);
            Assert.isNull(inductionRecord_1.getArchivngType(), "D1-3调岗就职记录-1-3-13修改就职记录-存档类型不能为空", false);
            Assert.isNull(inductionRecord_1.getIsUpdate(), "D1-3调岗就职记录-1-3-13修改就职记录-批次下是否更新不能为空", false);
            Assert.isNull(inductionRecord_1.getUpdateStatus(), "D1-3调岗就职记录-1-3-13修改就职记录-批次下更新状态不能为空", false);
            Assert.isNull(inductionRecord_1.getOperationInductionId(), "D1-3调岗就职记录-1-3-13修改就职记录-操作人就职记录ID不能为空", false);
            Assert.isNull(inductionRecord_1.getArchiveInductionId(), "D1-3调岗就职记录-1-3-13修改就职记录-存档人就职记录ID不能为空", false);
            Assert.isNull(inductionRecord_1.getOperateTime(), "D1-3调岗就职记录-1-3-13修改就职记录-操作时间不能为空", false);
            Assert.isNull(inductionRecord_1.getArchiveTime(), "D1-3调岗就职记录-1-3-13修改就职记录-存档时间不能为空", false);
            bOOLEAN = mInductionRecordService.updateInductionRecord(inductionRecord_1)/*vcase invoke 本地 method 方法调用;*/;


            if ((reqDto != null && reqDto.getIsDirector() != null && reqDto.getIsDirector().equals("TRUE") && reqDto != null && reqDto.getInductionUnitTypeCode() != null && reqDto.getInductionUnitTypeCode().equals("DEPT"))) {
                //if((D1-3调岗就职记录.是否主管 等于 是 and D1-3调岗就职记录.就职单位类型实例 等于 部门))  48764

                ImplementWriteBackDeptControllerDisposeComRespDto implementWriteBackDeptControllerDisposeComRespDto = null;
                if (userinfo != null) {
                    ImplementWriteBackDeptControllerDisposeComReqDto implementWriteBackDeptControllerDisposeComReqDto = new ImplementWriteBackDeptControllerDisposeComReqDto();
                    if (userinfo != null) {
                        implementWriteBackDeptControllerDisposeComReqDto.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:1132548_1_48765
                    }
                    if (reqDto != null) {
                        implementWriteBackDeptControllerDisposeComReqDto.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:1130198_1_48765
                        implementWriteBackDeptControllerDisposeComReqDto.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132549_1_48765
                        implementWriteBackDeptControllerDisposeComReqDto.setDeptId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1130200_1_48765
                        implementWriteBackDeptControllerDisposeComReqDto.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1130201_1_48765
                    }

                    /*D1执行回写部门主管(公共)[7424]   */
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getIdCardName(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-真实姓名不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getIsDirector(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-是否主管不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getDeptId(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-部门ID不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getOrganizationId(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-组织ID不能为空", false);
                    implementWriteBackDeptControllerDisposeComRespDto = implementWriteBackDeptControllerDisposeCom(implementWriteBackDeptControllerDisposeComReqDto)/*vcase invoke 同服务,同domain*/;


                }
            }
            AddBaseChangeColComRespDto addBaseChangeColComRespDto = null;
            if (string != null && userinfo != null && judgeAddInductionRecordUsableComRespDto != null) {
                AddBaseChangeColComReqDto addBaseChangeColComReqDto = new AddBaseChangeColComReqDto();
                addBaseChangeColComReqDto.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:154971_1_9487
                addBaseChangeColComReqDto.setEntityName("inductionRecordId");//CUSTOM_CONVENTION//sourceId:162135_1_9487
                addBaseChangeColComReqDto.setObjectPropertyCode("inductionRecordId");//CUSTOM_CONVENTION//sourceId:154973_1_9487
                addBaseChangeColComReqDto.setObjectPropertyName("调岗");//CUSTOM_CONVENTION//sourceId:181585_1_9487
                addBaseChangeColComReqDto.setOriColumnContent("无");//CUSTOM_CONVENTION//sourceId:154977_1_9487
                addBaseChangeColComReqDto.setSubjectTypeCode("ORG_LOG_NAV");//sourceId:154978_1_9487
                addBaseChangeColComReqDto.setSubjectChangeType("POST_TRANSFER_INDUCTION_RECORD");//CUSTOM_CONVENTION//sourceId:154979_1_9487
                addBaseChangeColComReqDto.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:154980_1_9487
                addBaseChangeColComReqDto.setBatchStartTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:154983_1_9487
                addBaseChangeColComReqDto.setBatchEndTime(CommonFunctionHelper.getFutureTime());//FUTURE_CURRENT_TIME//sourceId:154984_1_9487
                addBaseChangeColComReqDto.setIsEditing("TRUE");//sourceId:154985_1_9487
                addBaseChangeColComReqDto.setSubjectLifeCycle("EDITING");//sourceId:154986_1_9487
                if (string != null) {
                    addBaseChangeColComReqDto.setEntityId(string);//SimpleFieldAssign//sourceId:154972_1_9487
                    addBaseChangeColComReqDto.setMetaDataColumnContent(string);//SimpleFieldAssign//sourceId:154975_1_9487
                }
                if (userinfo != null) {
                    addBaseChangeColComReqDto.setColumnContent(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:154976_1_9487
                }
                if (reqDto != null) {
                    addBaseChangeColComReqDto.setObjectId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:154981_1_9487
                    addBaseChangeColComReqDto.setSubjectContAffiliationParentCont(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:287390_1_9487
                }
                if (judgeAddInductionRecordUsableComRespDto != null) {
                    addBaseChangeColComReqDto.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:154982_1_9487
                }

                /*D1-新增底层变更字段(本次新增变更记录)[3533]   */
                Assert.isNull(addBaseChangeColComReqDto.getTableTypeCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-内容表类型编码不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getEntityName(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-内容表主键行为日志英文名称不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getEntityId(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-内容表主键ID不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getObjectPropertyCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更字段英文名不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getObjectPropertyName(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更字段行为日志名称不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getMetaDataColumnContent(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更字段原始值不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getColumnContent(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更后字段中文内容不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getOriColumnContent(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更前字段中文内容不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getSubjectTypeCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体类型编码不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getSubjectChangeType(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体变更日志类型不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getObjectTypeCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-归属对象类型编码不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getObjectId(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-归属对象内容ID不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getBatchId(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-批次ID不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getBatchStartTime(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-批次开始时间不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getBatchEndTime(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-批次结束时间不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getIsEditing(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-是否未来不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getSubjectLifeCycle(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体生命周期不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto.getSubjectContAffiliationParentCont(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体内容归属父对象不能为空", false);
                addBaseChangeColComRespDto = changeColumnService.addBaseChangeColCom(addBaseChangeColComReqDto)/*vcase invoke isSameApp*/;


            }
            ArchiveBaseChangeColComRespDto archiveBaseChangeColComRespDto = null;
            if (userinfo != null && judgeAddInductionRecordUsableComRespDto != null) {
                ArchiveBaseChangeColComReqDto archiveBaseChangeColComReqDto = new ArchiveBaseChangeColComReqDto();
                archiveBaseChangeColComReqDto.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:181640_1_9488
                archiveBaseChangeColComReqDto.setEntityName("inductionRecordId");//CUSTOM_CONVENTION//sourceId:181586_1_9488
                archiveBaseChangeColComReqDto.setObjectPropertyCode("inductionRecordId");//CUSTOM_CONVENTION//sourceId:181587_1_9488
                archiveBaseChangeColComReqDto.setObjectPropertyName("离岗");//CUSTOM_CONVENTION//sourceId:181588_1_9488
                archiveBaseChangeColComReqDto.setOriColumnContent("数据正常");//CUSTOM_CONVENTION//sourceId:181591_1_9488
                archiveBaseChangeColComReqDto.setSubjectTypeCode("ORG_LOG_NAV");//sourceId:181592_1_9488
                archiveBaseChangeColComReqDto.setSubjectChangeType("ARCHIVE_INDUCTION_RECORD");//CUSTOM_CONVENTION//sourceId:181593_1_9488
                archiveBaseChangeColComReqDto.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:181594_1_9488
                if (reqDto != null) {
                    archiveBaseChangeColComReqDto.setEntityId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:181641_1_9488
                    archiveBaseChangeColComReqDto.setMetaDataColumnContent(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:181589_1_9488
                    archiveBaseChangeColComReqDto.setObjectId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:181595_1_9488
                    archiveBaseChangeColComReqDto.setSubjectContAffiliationParentCont(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:287375_1_9488
                }
                if (userinfo != null) {
                    archiveBaseChangeColComReqDto.setColumnContent(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:181590_1_9488
                }
                if (judgeAddInductionRecordUsableComRespDto != null) {
                    archiveBaseChangeColComReqDto.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:181596_1_9488
                }

                /*D1-1存档底层变更字段(本次存档变更记录)[3535]   */
                Assert.isNull(archiveBaseChangeColComReqDto.getTableTypeCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-内容表类型编码不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getEntityName(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-内容表主键行为日志英文名称不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getEntityId(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-内容表主键ID不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getObjectPropertyCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更字段英文名不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getObjectPropertyName(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更字段行为日志名称不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getMetaDataColumnContent(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更字段原始值不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getColumnContent(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更后字段中文内容不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getOriColumnContent(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更前字段中文内容不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getSubjectTypeCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-主体类型编码不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getSubjectChangeType(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-主体变更日志类型不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getObjectTypeCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-归属对象类型编码不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getObjectId(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-归属对象内容ID不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getBatchId(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-批次ID不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto.getSubjectContAffiliationParentCont(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-主体内容归属父对象不能为空", false);
                archiveBaseChangeColComRespDto = changeColumnService.archiveBaseChangeColCom(archiveBaseChangeColComReqDto)/*vcase invoke isSameApp*/;


            }
//processBranchName:正常结束 ,processBranchId:1774

        } else if ((judgeAddInductionRecordUsableComRespDto != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel() != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel().equals("PLAN_STAFFING"))) {
            //elseif(D1判断新增就职记录操作可用(公共).空间组织架构模式 等于 计划编制型)  1775

            Staffing staffing = null;
            QueryStaffingDetailReq queryStaffingDetailReq = new QueryStaffingDetailReq();
            queryStaffingDetailReq.setInductionState("FALSE");//sourceId:37259_1_1776
            queryStaffingDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:51430_1_1776
            if (reqDto != null) {
                queryStaffingDetailReq.setIsPartTimeStaffing(reqDto.getIsPartTimeStaffing());//SimpleFieldAssign//sourceId:37819_1_1776
                queryStaffingDetailReq.setDeptId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:37260_1_1776
                queryStaffingDetailReq.setOrganizationId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:51429_1_1776
                queryStaffingDetailReq.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:37261_1_1776
            }

            /*1-3-15查询编制详情（查部门或组织下空编制）[191]   */
            Assert.isNull(queryStaffingDetailReq.getInductionState(), "D1-3调岗就职记录-1-3-15查询编制详情（查部门或组织下空编制）-编制是否在职不能为空", false);
            Assert.isNull(queryStaffingDetailReq.getIsPartTimeStaffing(), "D1-3调岗就职记录-1-3-15查询编制详情（查部门或组织下空编制）-是否兼职编制不能为空", false);
            Assert.isNull(queryStaffingDetailReq.getPositionId(), "D1-3调岗就职记录-1-3-15查询编制详情（查部门或组织下空编制）-职务ID不能为空", false);
            Assert.isNull(queryStaffingDetailReq.getSubjectLifeCycle(), "D1-3调岗就职记录-1-3-15查询编制详情（查部门或组织下空编制）-主体生命周期不能为空", false);
            staffing = mStaffingService.queryStaffingDetail(queryStaffingDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((staffing != null)) {
                //if(1-3-15查询编制详情（查部门或组织下空编制）.出参 不等于空 )  1777

                String string_2 = null;
                if (queryMidBaseCourseDetailComRespDto != null && implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null && staffing != null && judgeAddInductionRecordUsableComRespDto != null) {
                    InductionRecord inductionRecord_2 = new InductionRecord();
                    inductionRecord_2.setSubjectLifeCycle("EDITING");//sourceId:37202_1_1778
                    inductionRecord_2.setIsEditing("TRUE");//sourceId:37205_1_1778
                    inductionRecord_2.setIsUpdate("TRUE");//sourceId:37209_1_1778
                    inductionRecord_2.setUpdateStatus("NEW");//sourceId:37210_1_1778
                    inductionRecord_2.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:285692_1_1778
                    inductionRecord_2.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:285693_1_1778
                    if (reqDto != null) {
                        inductionRecord_2.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:37171_1_1778
                        inductionRecord_2.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:37172_1_1778
                        inductionRecord_2.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:37173_1_1778
                        inductionRecord_2.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:37174_1_1778
                        inductionRecord_2.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:37175_1_1778
                        inductionRecord_2.setOrganizationName(reqDto.getOrganizationName());//SimpleFieldAssign//sourceId:37176_1_1778
                        inductionRecord_2.setDeptShortName(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:37208_1_1778
                        inductionRecord_2.setFirstLetter(reqDto.getFirstLetter());//SimpleFieldAssign//sourceId:37177_1_1778
                        inductionRecord_2.setIsCustomPosition(reqDto.getIsCustomPosition());//SimpleFieldAssign//sourceId:37180_1_1778
                        inductionRecord_2.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:37181_1_1778
                        inductionRecord_2.setOrderNumber(reqDto.getOrderNumber());//SimpleFieldAssign//sourceId:51337_1_1778
                        inductionRecord_2.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:37187_1_1778
                        inductionRecord_2.setPositionIdNameId(reqDto.getPositionIdNameId());//SimpleFieldAssign//sourceId:37183_1_1778
                        inductionRecord_2.setPositionIdName(reqDto.getPositionIdName());//SimpleFieldAssign//sourceId:37184_1_1778
                        inductionRecord_2.setDirectorInductionRecordId(reqDto.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:37201_1_1778
                        inductionRecord_2.setInductionStartTime(reqDto.getInductionStartTime());//SimpleFieldAssign//sourceId:37204_1_1778
                        inductionRecord_2.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:247082_1_1778
                        inductionRecord_2.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132539_1_1778
                    }
                    if (queryMidBaseCourseDetailComRespDto != null) {
                        inductionRecord_2.setPrimaryDeptId(queryMidBaseCourseDetailComRespDto.getPrimaryDeptId());//SimpleFieldAssign//sourceId:1682640_1_1778
                    }
                    if (implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null) {
                        inductionRecord_2.setIsMainInduction(implementAnalyzeNewInductionRecordIsMajorPositionComRespDto.getIsMainInduction());//SimpleFieldAssign//sourceId:37179_1_1778
                    }
                    if (staffing != null) {
                        inductionRecord_2.setStaffingId(staffing.getStaffingId());//SimpleFieldAssign//sourceId:51338_1_1778
                    }
                    if (judgeAddInductionRecordUsableComRespDto != null) {
                        inductionRecord_2.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:37203_1_1778
                    }

                    /*1-3-13新增就职记录[162]   */
                    Assert.isNull(inductionRecord_2.getInductionUnitTypeCode(), "D1-3调岗就职记录-1-3-13新增就职记录-就职单位类型实例不能为空", false);
                    Assert.isNull(inductionRecord_2.getEntityId(), "D1-3调岗就职记录-1-3-13新增就职记录-就职单位对象实例ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getPrimaryDeptId(), "D1-3调岗就职记录-1-3-13新增就职记录-冗余一级部门ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getOriginalRoleMemberId(), "D1-3调岗就职记录-1-3-13新增就职记录-身份人员ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getUserId(), "D1-3调岗就职记录-1-3-13新增就职记录-个人账号ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getOrganizationId(), "D1-3调岗就职记录-1-3-13新增就职记录-组织ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getOrganizationName(), "D1-3调岗就职记录-1-3-13新增就职记录-冗余组织名称不能为空", false);
                    Assert.isNull(inductionRecord_2.getDeptShortName(), "D1-3调岗就职记录-1-3-13新增就职记录-冗余部门名称不能为空", false);
                    Assert.isNull(inductionRecord_2.getFirstLetter(), "D1-3调岗就职记录-1-3-13新增就职记录-备注首位字母不能为空", false);
                    Assert.isNull(inductionRecord_2.getIsMainInduction(), "D1-3调岗就职记录-1-3-13新增就职记录-是否主岗不能为空", false);
                    Assert.isNull(inductionRecord_2.getIsCustomPosition(), "D1-3调岗就职记录-1-3-13新增就职记录-是否自定义职务不能为空", false);
                    Assert.isNull(inductionRecord_2.getPositionType(), "D1-3调岗就职记录-1-3-13新增就职记录-职务性质不能为空", false);
                    Assert.isNull(inductionRecord_2.getOrderNumber(), "D1-3调岗就职记录-1-3-13新增就职记录-排序不能为空", false);
                    Assert.isNull(inductionRecord_2.getPositionIdName(), "D1-3调岗就职记录-1-3-13新增就职记录-必选冗余职务名称不能为空", false);
                    Assert.isNull(inductionRecord_2.getBatchId(), "D1-3调岗就职记录-1-3-13新增就职记录-批次ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getIsDirector(), "D1-3调岗就职记录-1-3-13新增就职记录-是否主管不能为空", false);
                    Assert.isNull(inductionRecord_2.getSubjectLifeCycle(), "D1-3调岗就职记录-1-3-13新增就职记录-主体生命周期不能为空", false);
                    Assert.isNull(inductionRecord_2.getIsEditing(), "D1-3调岗就职记录-1-3-13新增就职记录-是否未来不能为空", false);
                    Assert.isNull(inductionRecord_2.getIsUpdate(), "D1-3调岗就职记录-1-3-13新增就职记录-批次下是否更新不能为空", false);
                    Assert.isNull(inductionRecord_2.getUpdateStatus(), "D1-3调岗就职记录-1-3-13新增就职记录-批次下更新状态不能为空", false);
                    Assert.isNull(inductionRecord_2.getSpaceId(), "D1-3调岗就职记录-1-3-13新增就职记录-创建于空间ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getAppId(), "D1-3调岗就职记录-1-3-13新增就职记录-创建于联盟应用ID不能为空", false);
                    string_2 = mInductionRecordService.addInductionRecord(inductionRecord_2)/*vcase invoke 本地 method 方法调用;*/;


                    string_1 = string_2;
                }
                boolean bOOLEAN_1;
                if (staffing != null) {
                    Staffing staffing_2 = new Staffing();
                    staffing_2.setInductionState("TRUE");//sourceId:37577_1_1779
                    staffing_2.setTempLock("TRUE");//sourceId:37578_1_1779
                    if (staffing != null) {
                        staffing_2.setStaffingId(staffing.getStaffingId());//SimpleFieldAssign//sourceId:37576_1_1779
                    }
                    if (reqDto != null) {
                        staffing_2.setIsUsedbyPartTime(reqDto.getIsPartTimeStaffing());//SimpleFieldAssign//sourceId:51619_1_1779
                    }

                    /*1-3-15修改编制（锁定编制等）[186]   */
                    Assert.isNull(staffing_2.getInductionState(), "D1-3调岗就职记录-1-3-15修改编制（锁定编制等）-编制是否在职不能为空", false);
                    Assert.isNull(staffing_2.getIsUsedbyPartTime(), "D1-3调岗就职记录-1-3-15修改编制（锁定编制等）-是否兼职占用不能为空", false);
                    Assert.isNull(staffing_2.getTempLock(), "D1-3调岗就职记录-1-3-15修改编制（锁定编制等）-临时锁定状态不能为空", false);
                    bOOLEAN_1 = mStaffingService.updateStaffing(staffing_2)/*vcase invoke 本地 method 方法调用;*/;


                }
                boolean bOOLEAN_2;
                InductionRecord inductionRecord_3 = new InductionRecord();
                inductionRecord_3.setArchivngType("TOBE_ARCHIVING");//sourceId:37374_1_1780
                inductionRecord_3.setIsUpdate("TRUE");//sourceId:37375_1_1780
                inductionRecord_3.setUpdateStatus("ARCHIVE");//sourceId:37376_1_1780
                inductionRecord_3.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:37377_1_1780
                inductionRecord_3.setArchiveInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:37378_1_1780
                inductionRecord_3.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:37379_1_1780
                inductionRecord_3.setArchiveTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:37380_1_1780
                if (reqDto != null) {
                    inductionRecord_3.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:37372_1_1780
                    inductionRecord_3.setInductionEndTime(reqDto.getInductionEndTime());//SimpleFieldAssign//sourceId:37373_1_1780
                }

                /*1-3-13修改就职记录[163]   */
                Assert.isNull(inductionRecord_3.getInductionRecordId(), "D1-3调岗就职记录-1-3-13修改就职记录-就职记录ID不能为空", false);
                Assert.isNull(inductionRecord_3.getInductionEndTime(), "D1-3调岗就职记录-1-3-13修改就职记录-就职结束时间不能为空", false);
                Assert.isNull(inductionRecord_3.getArchivngType(), "D1-3调岗就职记录-1-3-13修改就职记录-存档类型不能为空", false);
                Assert.isNull(inductionRecord_3.getIsUpdate(), "D1-3调岗就职记录-1-3-13修改就职记录-批次下是否更新不能为空", false);
                Assert.isNull(inductionRecord_3.getUpdateStatus(), "D1-3调岗就职记录-1-3-13修改就职记录-批次下更新状态不能为空", false);
                Assert.isNull(inductionRecord_3.getOperationInductionId(), "D1-3调岗就职记录-1-3-13修改就职记录-操作人就职记录ID不能为空", false);
                Assert.isNull(inductionRecord_3.getArchiveInductionId(), "D1-3调岗就职记录-1-3-13修改就职记录-存档人就职记录ID不能为空", false);
                Assert.isNull(inductionRecord_3.getOperateTime(), "D1-3调岗就职记录-1-3-13修改就职记录-操作时间不能为空", false);
                Assert.isNull(inductionRecord_3.getArchiveTime(), "D1-3调岗就职记录-1-3-13修改就职记录-存档时间不能为空", false);
                bOOLEAN_2 = mInductionRecordService.updateInductionRecord(inductionRecord_3)/*vcase invoke 本地 method 方法调用;*/;


                InductionRecord inductionRecord_4 = null;
                QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
                if (reqDto != null) {
                    queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:37647_1_1781
                }

                /*1-3-13查询就职记录详情（查编制）[165]   */
                Assert.isNull(queryinductionRecordDetailReq.getInductionRecordId(), "D1-3调岗就职记录-1-3-13查询就职记录详情（查编制）-就职记录ID不能为空", false);
                inductionRecord_4 = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


                boolean bOOLEAN_3;
                if (inductionRecord_4 != null) {
                    Staffing staffing_3 = new Staffing();
                    staffing_3.setInductionState("FALSE");//sourceId:37662_1_1782
                    staffing_3.setTempLock("TRUE");//sourceId:37663_1_1782
                    if (inductionRecord_4 != null) {
                        staffing_3.setStaffingId(inductionRecord_4.getStaffingId());//SimpleFieldAssign//sourceId:37661_1_1782
                    }

                    /*1-3-15修改编制（存档释放）[186]   */
                    Assert.isNull(staffing_3.getInductionState(), "D1-3调岗就职记录-1-3-15修改编制（存档释放）-编制是否在职不能为空", false);
                    Assert.isNull(staffing_3.getTempLock(), "D1-3调岗就职记录-1-3-15修改编制（存档释放）-临时锁定状态不能为空", false);
                    bOOLEAN_3 = mStaffingService.updateStaffing(staffing_3)/*vcase invoke 本地 method 方法调用;*/;


                }
                if ((reqDto != null && reqDto.getIsDirector() != null && reqDto.getIsDirector().equals("TRUE") && reqDto != null && reqDto.getInductionUnitTypeCode() != null && reqDto.getInductionUnitTypeCode().equals("DEPT"))) {
                    //if((D1-3调岗就职记录.是否主管 等于 是 and D1-3调岗就职记录.就职单位类型实例 等于 部门))  48766

                    ImplementWriteBackDeptControllerDisposeComRespDto implementWriteBackDeptControllerDisposeComRespDto_1 = null;
                    if (userinfo != null) {
                        ImplementWriteBackDeptControllerDisposeComReqDto implementWriteBackDeptControllerDisposeComReqDto_1 = new ImplementWriteBackDeptControllerDisposeComReqDto();
                        if (userinfo != null) {
                            implementWriteBackDeptControllerDisposeComReqDto_1.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:1132548_1_48767
                        }
                        if (reqDto != null) {
                            implementWriteBackDeptControllerDisposeComReqDto_1.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:1130198_1_48767
                            implementWriteBackDeptControllerDisposeComReqDto_1.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132549_1_48767
                            implementWriteBackDeptControllerDisposeComReqDto_1.setDeptId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1130200_1_48767
                            implementWriteBackDeptControllerDisposeComReqDto_1.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1130201_1_48767
                        }

                        /*D1执行回写部门主管(公共)[7424]   */
                        Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_1.getIdCardName(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-真实姓名不能为空", false);
                        Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_1.getIsDirector(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-是否主管不能为空", false);
                        Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_1.getDeptId(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-部门ID不能为空", false);
                        Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_1.getOrganizationId(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-组织ID不能为空", false);
                        implementWriteBackDeptControllerDisposeComRespDto_1 = implementWriteBackDeptControllerDisposeCom(implementWriteBackDeptControllerDisposeComReqDto_1)/*vcase invoke 同服务,同domain*/;


                    }
                }
                AddBaseChangeColComRespDto addBaseChangeColComRespDto_1 = null;
                if (string_2 != null && userinfo != null && judgeAddInductionRecordUsableComRespDto != null) {
                    AddBaseChangeColComReqDto addBaseChangeColComReqDto_1 = new AddBaseChangeColComReqDto();
                    addBaseChangeColComReqDto_1.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:154971_1_9489
                    addBaseChangeColComReqDto_1.setEntityName("inductionRecordId");//CUSTOM_CONVENTION//sourceId:162135_1_9489
                    addBaseChangeColComReqDto_1.setObjectPropertyCode("inductionRecordId");//CUSTOM_CONVENTION//sourceId:154973_1_9489
                    addBaseChangeColComReqDto_1.setObjectPropertyName("调岗");//CUSTOM_CONVENTION//sourceId:181585_1_9489
                    addBaseChangeColComReqDto_1.setOriColumnContent("无");//CUSTOM_CONVENTION//sourceId:154977_1_9489
                    addBaseChangeColComReqDto_1.setSubjectTypeCode("ORG_LOG_NAV");//sourceId:154978_1_9489
                    addBaseChangeColComReqDto_1.setSubjectChangeType("POST_TRANSFER_INDUCTION_RECORD");//CUSTOM_CONVENTION//sourceId:154979_1_9489
                    addBaseChangeColComReqDto_1.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:154980_1_9489
                    addBaseChangeColComReqDto_1.setBatchStartTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:154983_1_9489
                    addBaseChangeColComReqDto_1.setBatchEndTime(CommonFunctionHelper.getFutureTime());//FUTURE_CURRENT_TIME//sourceId:154984_1_9489
                    addBaseChangeColComReqDto_1.setIsEditing("TRUE");//sourceId:154985_1_9489
                    addBaseChangeColComReqDto_1.setSubjectLifeCycle("EDITING");//sourceId:154986_1_9489
                    if (string_2 != null) {
                        addBaseChangeColComReqDto_1.setEntityId(string_2);//SimpleFieldAssign//sourceId:154972_1_9489
                        addBaseChangeColComReqDto_1.setMetaDataColumnContent(string_2);//SimpleFieldAssign//sourceId:154975_1_9489
                    }
                    if (userinfo != null) {
                        addBaseChangeColComReqDto_1.setColumnContent(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:154976_1_9489
                    }
                    if (reqDto != null) {
                        addBaseChangeColComReqDto_1.setObjectId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:154981_1_9489
                        addBaseChangeColComReqDto_1.setSubjectContAffiliationParentCont(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:287390_1_9489
                    }
                    if (judgeAddInductionRecordUsableComRespDto != null) {
                        addBaseChangeColComReqDto_1.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:154982_1_9489
                    }

                    /*D1-新增底层变更字段(本次新增变更记录)[3533]   */
                    Assert.isNull(addBaseChangeColComReqDto_1.getTableTypeCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-内容表类型编码不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getEntityName(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-内容表主键行为日志英文名称不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getEntityId(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-内容表主键ID不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getObjectPropertyCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更字段英文名不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getObjectPropertyName(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更字段行为日志名称不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getMetaDataColumnContent(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更字段原始值不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getColumnContent(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更后字段中文内容不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getOriColumnContent(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更前字段中文内容不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getSubjectTypeCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体类型编码不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getSubjectChangeType(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体变更日志类型不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getObjectTypeCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-归属对象类型编码不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getObjectId(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-归属对象内容ID不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getBatchId(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-批次ID不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getBatchStartTime(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-批次开始时间不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getBatchEndTime(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-批次结束时间不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getIsEditing(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-是否未来不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getSubjectLifeCycle(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体生命周期不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getSubjectContAffiliationParentCont(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体内容归属父对象不能为空", false);
                    addBaseChangeColComRespDto_1 = changeColumnService.addBaseChangeColCom(addBaseChangeColComReqDto_1)/*vcase invoke isSameApp*/;


                }
                ArchiveBaseChangeColComRespDto archiveBaseChangeColComRespDto_1 = null;
                if (userinfo != null && judgeAddInductionRecordUsableComRespDto != null) {
                    ArchiveBaseChangeColComReqDto archiveBaseChangeColComReqDto_1 = new ArchiveBaseChangeColComReqDto();
                    archiveBaseChangeColComReqDto_1.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:181640_1_9490
                    archiveBaseChangeColComReqDto_1.setEntityName("inductionRecordId");//CUSTOM_CONVENTION//sourceId:181586_1_9490
                    archiveBaseChangeColComReqDto_1.setObjectPropertyCode("inductionRecordId");//CUSTOM_CONVENTION//sourceId:181587_1_9490
                    archiveBaseChangeColComReqDto_1.setObjectPropertyName("离岗");//CUSTOM_CONVENTION//sourceId:181588_1_9490
                    archiveBaseChangeColComReqDto_1.setOriColumnContent("数据正常");//CUSTOM_CONVENTION//sourceId:181591_1_9490
                    archiveBaseChangeColComReqDto_1.setSubjectTypeCode("ORG_LOG_NAV");//sourceId:181592_1_9490
                    archiveBaseChangeColComReqDto_1.setSubjectChangeType("ARCHIVE_INDUCTION_RECORD");//CUSTOM_CONVENTION//sourceId:181593_1_9490
                    archiveBaseChangeColComReqDto_1.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:181594_1_9490
                    if (reqDto != null) {
                        archiveBaseChangeColComReqDto_1.setMetaDataColumnContent(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:181589_1_9490
                        archiveBaseChangeColComReqDto_1.setObjectId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:181595_1_9490
                        archiveBaseChangeColComReqDto_1.setSubjectContAffiliationParentCont(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:287375_1_9490
                    }
                    if (userinfo != null) {
                        archiveBaseChangeColComReqDto_1.setColumnContent(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:181590_1_9490
                    }
                    if (judgeAddInductionRecordUsableComRespDto != null) {
                        archiveBaseChangeColComReqDto_1.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:181596_1_9490
                    }

                    /*D1-1存档底层变更字段(本次存档变更记录)[3535]   */
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getTableTypeCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-内容表类型编码不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getEntityName(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-内容表主键行为日志英文名称不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getEntityId(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-内容表主键ID不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getObjectPropertyCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更字段英文名不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getObjectPropertyName(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更字段行为日志名称不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getMetaDataColumnContent(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更字段原始值不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getColumnContent(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更后字段中文内容不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getOriColumnContent(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更前字段中文内容不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getSubjectTypeCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-主体类型编码不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getSubjectChangeType(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-主体变更日志类型不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getObjectTypeCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-归属对象类型编码不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getObjectId(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-归属对象内容ID不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getBatchId(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-批次ID不能为空", false);
                    Assert.isNull(archiveBaseChangeColComReqDto_1.getSubjectContAffiliationParentCont(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-主体内容归属父对象不能为空", false);
                    archiveBaseChangeColComRespDto_1 = changeColumnService.archiveBaseChangeColCom(archiveBaseChangeColComReqDto_1)/*vcase invoke isSameApp*/;


                }
//processBranchName:正常结束 ,processBranchId:1783

            } else {
                //else  1785

//异常结束 1786
                throw new BizException("10300014", "对不起，没有空缺岗位，不可加入成员！", false);
            }
        } else if ((judgeAddInductionRecordUsableComRespDto != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel() != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel().equals("EASY"))) {
            //elseif(D1判断新增就职记录操作可用(公共).空间组织架构模式 等于 宽松型)  12450

            String string_3 = null;
            if (queryMidBaseCourseDetailComRespDto != null && implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null && judgeAddInductionRecordUsableComRespDto != null) {
                InductionRecord inductionRecord_6 = new InductionRecord();
                inductionRecord_6.setSubjectLifeCycle("EDITING");//sourceId:37202_1_12451
                inductionRecord_6.setIsEditing("TRUE");//sourceId:37205_1_12451
                inductionRecord_6.setIsUpdate("TRUE");//sourceId:37209_1_12451
                inductionRecord_6.setUpdateStatus("NEW");//sourceId:37210_1_12451
                inductionRecord_6.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:285692_1_12451
                inductionRecord_6.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:285693_1_12451
                if (reqDto != null) {
                    inductionRecord_6.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:37171_1_12451
                    inductionRecord_6.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:37172_1_12451
                    inductionRecord_6.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:37173_1_12451
                    inductionRecord_6.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:37174_1_12451
                    inductionRecord_6.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:37175_1_12451
                    inductionRecord_6.setOrganizationName(reqDto.getOrganizationName());//SimpleFieldAssign//sourceId:37176_1_12451
                    inductionRecord_6.setDeptShortName(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:37208_1_12451
                    inductionRecord_6.setFirstLetter(reqDto.getFirstLetter());//SimpleFieldAssign//sourceId:37177_1_12451
                    inductionRecord_6.setIsCustomPosition(reqDto.getIsCustomPosition());//SimpleFieldAssign//sourceId:37180_1_12451
                    inductionRecord_6.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:37181_1_12451
                    inductionRecord_6.setOrderNumber(reqDto.getOrderNumber());//SimpleFieldAssign//sourceId:51337_1_12451
                    inductionRecord_6.setPositionIdName(reqDto.getPositionIdName());//SimpleFieldAssign//sourceId:37184_1_12451
                    inductionRecord_6.setDirectorInductionRecordId(reqDto.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:37201_1_12451
                    inductionRecord_6.setInductionStartTime(reqDto.getInductionStartTime());//SimpleFieldAssign//sourceId:37204_1_12451
                    inductionRecord_6.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:247082_1_12451
                    inductionRecord_6.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132539_1_12451
                }
                if (queryMidBaseCourseDetailComRespDto != null) {
                    inductionRecord_6.setPrimaryDeptId(queryMidBaseCourseDetailComRespDto.getPrimaryDeptId());//SimpleFieldAssign//sourceId:1682640_1_12451
                }
                if (implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null) {
                    inductionRecord_6.setIsMainInduction(implementAnalyzeNewInductionRecordIsMajorPositionComRespDto.getIsMainInduction());//SimpleFieldAssign//sourceId:37179_1_12451
                }
                if (judgeAddInductionRecordUsableComRespDto != null) {
                    inductionRecord_6.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:37203_1_12451
                }

                /*1-3-13新增就职记录[162]   */
                Assert.isNull(inductionRecord_6.getInductionUnitTypeCode(), "D1-3调岗就职记录-1-3-13新增就职记录-就职单位类型实例不能为空", false);
                Assert.isNull(inductionRecord_6.getEntityId(), "D1-3调岗就职记录-1-3-13新增就职记录-就职单位对象实例ID不能为空", false);
                Assert.isNull(inductionRecord_6.getPrimaryDeptId(), "D1-3调岗就职记录-1-3-13新增就职记录-冗余一级部门ID不能为空", false);
                Assert.isNull(inductionRecord_6.getOriginalRoleMemberId(), "D1-3调岗就职记录-1-3-13新增就职记录-身份人员ID不能为空", false);
                Assert.isNull(inductionRecord_6.getUserId(), "D1-3调岗就职记录-1-3-13新增就职记录-个人账号ID不能为空", false);
                Assert.isNull(inductionRecord_6.getOrganizationId(), "D1-3调岗就职记录-1-3-13新增就职记录-组织ID不能为空", false);
                Assert.isNull(inductionRecord_6.getOrganizationName(), "D1-3调岗就职记录-1-3-13新增就职记录-冗余组织名称不能为空", false);
                Assert.isNull(inductionRecord_6.getDeptShortName(), "D1-3调岗就职记录-1-3-13新增就职记录-冗余部门名称不能为空", false);
                Assert.isNull(inductionRecord_6.getFirstLetter(), "D1-3调岗就职记录-1-3-13新增就职记录-备注首位字母不能为空", false);
                Assert.isNull(inductionRecord_6.getIsMainInduction(), "D1-3调岗就职记录-1-3-13新增就职记录-是否主岗不能为空", false);
                Assert.isNull(inductionRecord_6.getIsCustomPosition(), "D1-3调岗就职记录-1-3-13新增就职记录-是否自定义职务不能为空", false);
                Assert.isNull(inductionRecord_6.getPositionType(), "D1-3调岗就职记录-1-3-13新增就职记录-职务性质不能为空", false);
                Assert.isNull(inductionRecord_6.getOrderNumber(), "D1-3调岗就职记录-1-3-13新增就职记录-排序不能为空", false);
                Assert.isNull(inductionRecord_6.getPositionIdName(), "D1-3调岗就职记录-1-3-13新增就职记录-必选冗余职务名称不能为空", false);
                Assert.isNull(inductionRecord_6.getBatchId(), "D1-3调岗就职记录-1-3-13新增就职记录-批次ID不能为空", false);
                Assert.isNull(inductionRecord_6.getIsDirector(), "D1-3调岗就职记录-1-3-13新增就职记录-是否主管不能为空", false);
                Assert.isNull(inductionRecord_6.getSubjectLifeCycle(), "D1-3调岗就职记录-1-3-13新增就职记录-主体生命周期不能为空", false);
                Assert.isNull(inductionRecord_6.getIsEditing(), "D1-3调岗就职记录-1-3-13新增就职记录-是否未来不能为空", false);
                Assert.isNull(inductionRecord_6.getIsUpdate(), "D1-3调岗就职记录-1-3-13新增就职记录-批次下是否更新不能为空", false);
                Assert.isNull(inductionRecord_6.getUpdateStatus(), "D1-3调岗就职记录-1-3-13新增就职记录-批次下更新状态不能为空", false);
                Assert.isNull(inductionRecord_6.getSpaceId(), "D1-3调岗就职记录-1-3-13新增就职记录-创建于空间ID不能为空", false);
                Assert.isNull(inductionRecord_6.getAppId(), "D1-3调岗就职记录-1-3-13新增就职记录-创建于联盟应用ID不能为空", false);
                string_3 = mInductionRecordService.addInductionRecord(inductionRecord_6)/*vcase invoke 本地 method 方法调用;*/;


                string_1 = string_3;
            }
            boolean bOOLEAN_4;
            InductionRecord inductionRecord_7 = new InductionRecord();
            inductionRecord_7.setArchivngType("TOBE_ARCHIVING");//sourceId:37374_1_12452
            inductionRecord_7.setIsUpdate("TRUE");//sourceId:37375_1_12452
            inductionRecord_7.setUpdateStatus("ARCHIVE");//sourceId:37376_1_12452
            inductionRecord_7.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:37377_1_12452
            inductionRecord_7.setArchiveInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:37378_1_12452
            inductionRecord_7.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:37379_1_12452
            inductionRecord_7.setArchiveTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:37380_1_12452
            if (reqDto != null) {
                inductionRecord_7.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:37372_1_12452
                inductionRecord_7.setInductionEndTime(reqDto.getInductionEndTime());//SimpleFieldAssign//sourceId:37373_1_12452
            }

            /*1-3-13修改就职记录[163]   */
            Assert.isNull(inductionRecord_7.getInductionRecordId(), "D1-3调岗就职记录-1-3-13修改就职记录-就职记录ID不能为空", false);
            Assert.isNull(inductionRecord_7.getInductionEndTime(), "D1-3调岗就职记录-1-3-13修改就职记录-就职结束时间不能为空", false);
            Assert.isNull(inductionRecord_7.getArchivngType(), "D1-3调岗就职记录-1-3-13修改就职记录-存档类型不能为空", false);
            Assert.isNull(inductionRecord_7.getIsUpdate(), "D1-3调岗就职记录-1-3-13修改就职记录-批次下是否更新不能为空", false);
            Assert.isNull(inductionRecord_7.getUpdateStatus(), "D1-3调岗就职记录-1-3-13修改就职记录-批次下更新状态不能为空", false);
            Assert.isNull(inductionRecord_7.getOperationInductionId(), "D1-3调岗就职记录-1-3-13修改就职记录-操作人就职记录ID不能为空", false);
            Assert.isNull(inductionRecord_7.getArchiveInductionId(), "D1-3调岗就职记录-1-3-13修改就职记录-存档人就职记录ID不能为空", false);
            Assert.isNull(inductionRecord_7.getOperateTime(), "D1-3调岗就职记录-1-3-13修改就职记录-操作时间不能为空", false);
            Assert.isNull(inductionRecord_7.getArchiveTime(), "D1-3调岗就职记录-1-3-13修改就职记录-存档时间不能为空", false);
            bOOLEAN_4 = mInductionRecordService.updateInductionRecord(inductionRecord_7)/*vcase invoke 本地 method 方法调用;*/;


            if ((reqDto != null && reqDto.getIsDirector() != null && reqDto.getIsDirector().equals("TRUE") && reqDto != null && reqDto.getInductionUnitTypeCode() != null && reqDto.getInductionUnitTypeCode().equals("DEPT"))) {
                //if((D1-3调岗就职记录.是否主管 等于 是 and D1-3调岗就职记录.就职单位类型实例 等于 部门))  48768

                ImplementWriteBackDeptControllerDisposeComRespDto implementWriteBackDeptControllerDisposeComRespDto_2 = null;
                if (userinfo != null) {
                    ImplementWriteBackDeptControllerDisposeComReqDto implementWriteBackDeptControllerDisposeComReqDto_2 = new ImplementWriteBackDeptControllerDisposeComReqDto();
                    if (userinfo != null) {
                        implementWriteBackDeptControllerDisposeComReqDto_2.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:1132548_1_48769
                    }
                    if (reqDto != null) {
                        implementWriteBackDeptControllerDisposeComReqDto_2.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:1130198_1_48769
                        implementWriteBackDeptControllerDisposeComReqDto_2.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132549_1_48769
                        implementWriteBackDeptControllerDisposeComReqDto_2.setDeptId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1130200_1_48769
                        implementWriteBackDeptControllerDisposeComReqDto_2.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1130201_1_48769
                    }

                    /*D1执行回写部门主管(公共)[7424]   */
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_2.getIdCardName(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-真实姓名不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_2.getIsDirector(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-是否主管不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_2.getDeptId(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-部门ID不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_2.getOrganizationId(), "D1-3调岗就职记录-D1执行回写部门主管(公共)-组织ID不能为空", false);
                    implementWriteBackDeptControllerDisposeComRespDto_2 = implementWriteBackDeptControllerDisposeCom(implementWriteBackDeptControllerDisposeComReqDto_2)/*vcase invoke 同服务,同domain*/;


                }
            }
            AddBaseChangeColComRespDto addBaseChangeColComRespDto_2 = null;
            if (string_3 != null && userinfo != null && judgeAddInductionRecordUsableComRespDto != null) {
                AddBaseChangeColComReqDto addBaseChangeColComReqDto_2 = new AddBaseChangeColComReqDto();
                addBaseChangeColComReqDto_2.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:154971_1_12473
                addBaseChangeColComReqDto_2.setEntityName("inductionRecordId");//CUSTOM_CONVENTION//sourceId:162135_1_12473
                addBaseChangeColComReqDto_2.setObjectPropertyCode("inductionRecordId");//CUSTOM_CONVENTION//sourceId:154973_1_12473
                addBaseChangeColComReqDto_2.setObjectPropertyName("调岗");//CUSTOM_CONVENTION//sourceId:181585_1_12473
                addBaseChangeColComReqDto_2.setOriColumnContent("无");//CUSTOM_CONVENTION//sourceId:154977_1_12473
                addBaseChangeColComReqDto_2.setSubjectTypeCode("ORG_LOG_NAV");//sourceId:154978_1_12473
                addBaseChangeColComReqDto_2.setSubjectChangeType("POST_TRANSFER_INDUCTION_RECORD");//CUSTOM_CONVENTION//sourceId:154979_1_12473
                addBaseChangeColComReqDto_2.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:154980_1_12473
                addBaseChangeColComReqDto_2.setBatchStartTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:154983_1_12473
                addBaseChangeColComReqDto_2.setBatchEndTime(CommonFunctionHelper.getFutureTime());//FUTURE_CURRENT_TIME//sourceId:154984_1_12473
                addBaseChangeColComReqDto_2.setIsEditing("TRUE");//sourceId:154985_1_12473
                addBaseChangeColComReqDto_2.setSubjectLifeCycle("EDITING");//sourceId:154986_1_12473
                if (string_3 != null) {
                    addBaseChangeColComReqDto_2.setEntityId(string_3);//SimpleFieldAssign//sourceId:154972_1_12473
                    addBaseChangeColComReqDto_2.setMetaDataColumnContent(string_3);//SimpleFieldAssign//sourceId:154975_1_12473
                }
                if (userinfo != null) {
                    addBaseChangeColComReqDto_2.setColumnContent(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:154976_1_12473
                }
                if (reqDto != null) {
                    addBaseChangeColComReqDto_2.setObjectId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:154981_1_12473
                    addBaseChangeColComReqDto_2.setSubjectContAffiliationParentCont(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:287390_1_12473
                }
                if (judgeAddInductionRecordUsableComRespDto != null) {
                    addBaseChangeColComReqDto_2.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:154982_1_12473
                }

                /*D1-新增底层变更字段(本次新增变更记录)[3533]   */
                Assert.isNull(addBaseChangeColComReqDto_2.getTableTypeCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-内容表类型编码不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getEntityName(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-内容表主键行为日志英文名称不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getEntityId(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-内容表主键ID不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getObjectPropertyCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更字段英文名不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getObjectPropertyName(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更字段行为日志名称不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getMetaDataColumnContent(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更字段原始值不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getColumnContent(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更后字段中文内容不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getOriColumnContent(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-变更前字段中文内容不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getSubjectTypeCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体类型编码不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getSubjectChangeType(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体变更日志类型不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getObjectTypeCode(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-归属对象类型编码不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getObjectId(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-归属对象内容ID不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getBatchId(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-批次ID不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getBatchStartTime(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-批次开始时间不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getBatchEndTime(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-批次结束时间不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getIsEditing(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-是否未来不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getSubjectLifeCycle(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体生命周期不能为空", false);
                Assert.isNull(addBaseChangeColComReqDto_2.getSubjectContAffiliationParentCont(), "D1-3调岗就职记录-D1-新增底层变更字段(本次新增变更记录)-主体内容归属父对象不能为空", false);
                addBaseChangeColComRespDto_2 = changeColumnService.addBaseChangeColCom(addBaseChangeColComReqDto_2)/*vcase invoke isSameApp*/;


            }
            ArchiveBaseChangeColComRespDto archiveBaseChangeColComRespDto_2 = null;
            if (userinfo != null && judgeAddInductionRecordUsableComRespDto != null) {
                ArchiveBaseChangeColComReqDto archiveBaseChangeColComReqDto_2 = new ArchiveBaseChangeColComReqDto();
                archiveBaseChangeColComReqDto_2.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:181640_1_12474
                archiveBaseChangeColComReqDto_2.setEntityName("inductionRecordId");//CUSTOM_CONVENTION//sourceId:181586_1_12474
                archiveBaseChangeColComReqDto_2.setObjectPropertyCode("inductionRecordId");//CUSTOM_CONVENTION//sourceId:181587_1_12474
                archiveBaseChangeColComReqDto_2.setObjectPropertyName("离岗");//CUSTOM_CONVENTION//sourceId:181588_1_12474
                archiveBaseChangeColComReqDto_2.setOriColumnContent("数据正常");//CUSTOM_CONVENTION//sourceId:181591_1_12474
                archiveBaseChangeColComReqDto_2.setSubjectTypeCode("ORG_LOG_NAV");//sourceId:181592_1_12474
                archiveBaseChangeColComReqDto_2.setSubjectChangeType("ARCHIVE_INDUCTION_RECORD");//CUSTOM_CONVENTION//sourceId:181593_1_12474
                archiveBaseChangeColComReqDto_2.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:181594_1_12474
                if (reqDto != null) {
                    archiveBaseChangeColComReqDto_2.setEntityId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:181641_1_12474
                    archiveBaseChangeColComReqDto_2.setMetaDataColumnContent(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:181589_1_12474
                    archiveBaseChangeColComReqDto_2.setObjectId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:181595_1_12474
                    archiveBaseChangeColComReqDto_2.setSubjectContAffiliationParentCont(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:287375_1_12474
                }
                if (userinfo != null) {
                    archiveBaseChangeColComReqDto_2.setColumnContent(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:181590_1_12474
                }
                if (judgeAddInductionRecordUsableComRespDto != null) {
                    archiveBaseChangeColComReqDto_2.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:181596_1_12474
                }

                /*D1-1存档底层变更字段(本次存档变更记录)[3535]   */
                Assert.isNull(archiveBaseChangeColComReqDto_2.getTableTypeCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-内容表类型编码不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getEntityName(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-内容表主键行为日志英文名称不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getEntityId(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-内容表主键ID不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getObjectPropertyCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更字段英文名不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getObjectPropertyName(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更字段行为日志名称不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getMetaDataColumnContent(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更字段原始值不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getColumnContent(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更后字段中文内容不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getOriColumnContent(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-变更前字段中文内容不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getSubjectTypeCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-主体类型编码不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getSubjectChangeType(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-主体变更日志类型不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getObjectTypeCode(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-归属对象类型编码不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getObjectId(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-归属对象内容ID不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getBatchId(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-批次ID不能为空", false);
                Assert.isNull(archiveBaseChangeColComReqDto_2.getSubjectContAffiliationParentCont(), "D1-3调岗就职记录-D1-1存档底层变更字段(本次存档变更记录)-主体内容归属父对象不能为空", false);
                archiveBaseChangeColComRespDto_2 = changeColumnService.archiveBaseChangeColCom(archiveBaseChangeColComReqDto_2)/*vcase invoke isSameApp*/;


            }
//processBranchName:正常结束 ,processBranchId:12475

        }
        PostTransferInductionRecordRespDto retData = new PostTransferInductionRecordRespDto();
        if (string_1 != null) {
            retData.setInductionRecordId(string_1);//SimpleFieldAssign//sourceId:37430_1
        }


        return retData;
    }

    /**
     * D1-3补充系统职务（边界）[1468]
     * gen by moon at 8/10/2022, 3:16:35 AM
     */
    @Trace(operationName = "D1-3补充系统职务（边界）")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public PerfectSystemPositionRespDto perfectSystemPosition(PerfectSystemPositionReqDto reqDto) {


        //virtualUsage 1-3-05查询职务详情  67
        Position position = null;
        QueryPositionDetailReq queryPositionDetailReq = new QueryPositionDetailReq();
        queryPositionDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:51505_1_67
        if (reqDto != null) {
            queryPositionDetailReq.setPositionId(reqDto.getPositionId());//sourceId:36873_1_67
        }

        /*1-3-05查询职务详情[146]   */
        Assert.isNull(queryPositionDetailReq.getPositionId(), "D1-3补充系统职务（边界）-1-3-05查询职务详情-职务ID不能为空", false);
        Assert.isNull(queryPositionDetailReq.getSubjectLifeCycle(), "D1-3补充系统职务（边界）-1-3-05查询职务详情-主体生命周期不能为空", false);
        position = mPositionService.queryPositionDetail(queryPositionDetailReq);


//virtualUsage 1-3-13查询就职记录详情  1813
        InductionRecord inductionRecord = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        queryinductionRecordDetailReq.setIsArchive("FALSE");//sourceId:36881_1_1813
        if (reqDto != null) {
            queryinductionRecordDetailReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//sourceId:36747_1_1813
            queryinductionRecordDetailReq.setPositionId(reqDto.getPositionId());//sourceId:36742_1_1813
            queryinductionRecordDetailReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//sourceId:51507_1_1813
            queryinductionRecordDetailReq.setEntityId(reqDto.getEntityId());//sourceId:36749_1_1813
        }

        /*1-3-13查询就职记录详情[165]   */
        Assert.isNull(queryinductionRecordDetailReq.getOriginalRoleMemberId(), "D1-3补充系统职务（边界）-1-3-13查询就职记录详情-身份人员ID不能为空", false);
        Assert.isNull(queryinductionRecordDetailReq.getPositionId(), "D1-3补充系统职务（边界）-1-3-13查询就职记录详情-冗余可选职务ID不能为空", false);
        Assert.isNull(queryinductionRecordDetailReq.getInductionUnitTypeCode(), "D1-3补充系统职务（边界）-1-3-13查询就职记录详情-就职单位类型实例不能为空", false);
        Assert.isNull(queryinductionRecordDetailReq.getEntityId(), "D1-3补充系统职务（边界）-1-3-13查询就职记录详情-就职单位对象实例ID不能为空", false);
        Assert.isNull(queryinductionRecordDetailReq.getIsArchive(), "D1-3补充系统职务（边界）-1-3-13查询就职记录详情-是否存档不能为空", false);
        inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq);


//virtualUsage D2-3查询配置项匹配结果转答案(公共)  5664
        QueryItemMatchResultToAnswerDetailComRespDto queryItemMatchResultToAnswerDetailComRespDto = null;
        QueryItemMatchResultToAnswerDetailComReqDto queryItemMatchResultToAnswerDetailComReqDto = new QueryItemMatchResultToAnswerDetailComReqDto();
        queryItemMatchResultToAnswerDetailComReqDto.setConfItemCode("ORG_STRUCTURE_MODEL");//CUSTOM_CONVENTION//sourceId:105147_1_5664
        queryItemMatchResultToAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:105148_1_5664
        queryItemMatchResultToAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:105149_1_5664

        /*D2-3查询配置项匹配结果转答案(公共)[3094]   */
        Assert.isNull(queryItemMatchResultToAnswerDetailComReqDto.getConfItemCode(), "D1-3补充系统职务（边界）-D2-3查询配置项匹配结果转答案(公共)-配置项标识不能为空", false);
        Assert.isNull(queryItemMatchResultToAnswerDetailComReqDto.getResultAspObjType(), "D1-3补充系统职务（边界）-D2-3查询配置项匹配结果转答案(公共)-答案归属对象类型不能为空", false);
        Assert.isNull(queryItemMatchResultToAnswerDetailComReqDto.getResultAspObjId(), "D1-3补充系统职务（边界）-D2-3查询配置项匹配结果转答案(公共)-答案归属对象ID不能为空", false);
        queryItemMatchResultToAnswerDetailComRespDto = confSchemeService.queryItemMatchResultToAnswerDetailCom(queryItemMatchResultToAnswerDetailComReqDto).getData();


        if ((position != null && inductionRecord == null && queryItemMatchResultToAnswerDetailComRespDto != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel() != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel().equals("STRICT"))) {
            //if((1-3-05查询职务详情.出参 值不等于空  and 1-3-13查询就职记录详情.出参 值等于空  and D2-3查询配置项匹配结果转答案(公共).空间组织架构模式 等于 严谨型))  1815

            boolean bOOLEAN;
            InductionRecord inductionRecord_2 = new InductionRecord();
            if (reqDto != null) {
                inductionRecord_2.setInductionRecordId(reqDto.getInductionRecordId());//sourceId:36579_1_1816
                inductionRecord_2.setPositionId(reqDto.getPositionId());//sourceId:36589_1_1816
                inductionRecord_2.setPositionIdNameId(reqDto.getPositionIdNameId());//sourceId:36587_1_1816
                inductionRecord_2.setPositionIdName(reqDto.getPositionIdName());//sourceId:36588_1_1816
                inductionRecord_2.setPositionType(reqDto.getPositionType());//sourceId:36585_1_1816
            }

            /*1-3-13修改就职记录[163]   */
            Assert.isNull(inductionRecord_2.getInductionRecordId(), "D1-3补充系统职务（边界）-1-3-13修改就职记录-就职记录ID不能为空", false);
            Assert.isNull(inductionRecord_2.getPositionId(), "D1-3补充系统职务（边界）-1-3-13修改就职记录-冗余可选职务ID不能为空", false);
            Assert.isNull(inductionRecord_2.getPositionIdNameId(), "D1-3补充系统职务（边界）-1-3-13修改就职记录-冗余职务名称ID不能为空", false);
            bOOLEAN = mInductionRecordService.updateInductionRecord(inductionRecord_2);


//processBranchName:正常结束 ,processBranchId:1817

        } else if ((position != null && inductionRecord == null && queryItemMatchResultToAnswerDetailComRespDto != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel() != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel().equals("PLAN_STAFFING"))) {
            //elseif((1-3-05查询职务详情.出参 值不等于空  and 1-3-13查询就职记录详情.出参 值等于空  and D2-3查询配置项匹配结果转答案(公共).空间组织架构模式 等于 计划编制型))  1818

            Staffing staffing = null;
            QueryStaffingDetailReq queryStaffingDetailReq = new QueryStaffingDetailReq();
            queryStaffingDetailReq.setInductionState("FALSE");//sourceId:36760_1_1822
            queryStaffingDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:51520_1_1822
            if (reqDto != null) {
                queryStaffingDetailReq.setIsPartTimeStaffing(reqDto.getIsPartTimeStaffing());//sourceId:37817_1_1822
                queryStaffingDetailReq.setDeptId(reqDto.getEntityId());//sourceId:36762_1_1822
                queryStaffingDetailReq.setPositionId(reqDto.getPositionId());//sourceId:36763_1_1822
            }

            /*1-3-15查询编制详情（查部门或组织下空编制）[191]   */
            Assert.isNull(queryStaffingDetailReq.getInductionState(), "D1-3补充系统职务（边界）-1-3-15查询编制详情（查部门或组织下空编制）-编制是否在职不能为空", false);
            Assert.isNull(queryStaffingDetailReq.getIsPartTimeStaffing(), "D1-3补充系统职务（边界）-1-3-15查询编制详情（查部门或组织下空编制）-是否兼职编制不能为空", false);
            Assert.isNull(queryStaffingDetailReq.getPositionId(), "D1-3补充系统职务（边界）-1-3-15查询编制详情（查部门或组织下空编制）-职务ID不能为空", false);
            Assert.isNull(queryStaffingDetailReq.getSubjectLifeCycle(), "D1-3补充系统职务（边界）-1-3-15查询编制详情（查部门或组织下空编制）-主体生命周期不能为空", false);
            staffing = mStaffingService.queryStaffingDetail(queryStaffingDetailReq);


            if ((staffing != null)) {
                //if(1-3-15查询编制详情（查部门或组织下空编制）.出参 不等于空 )  1823

                boolean bOOLEAN_1;
                if (staffing != null) {
                    InductionRecord inductionRecord_3 = new InductionRecord();
                    if (reqDto != null) {
                        inductionRecord_3.setInductionRecordId(reqDto.getInductionRecordId());//sourceId:36579_1_1824
                        inductionRecord_3.setPositionId(reqDto.getPositionId());//sourceId:36589_1_1824
                        inductionRecord_3.setPositionIdNameId(reqDto.getPositionIdNameId());//sourceId:36587_1_1824
                        inductionRecord_3.setPositionIdName(reqDto.getPositionIdName());//sourceId:36588_1_1824
                        inductionRecord_3.setPositionType(reqDto.getPositionType());//sourceId:36585_1_1824
                    }
                    if (staffing != null) {
                        inductionRecord_3.setStaffingId(staffing.getStaffingId());//sourceId:36586_1_1824
                    }

                    /*1-3-13修改就职记录[163]   */
                    Assert.isNull(inductionRecord_3.getInductionRecordId(), "D1-3补充系统职务（边界）-1-3-13修改就职记录-就职记录ID不能为空", false);
                    Assert.isNull(inductionRecord_3.getPositionId(), "D1-3补充系统职务（边界）-1-3-13修改就职记录-冗余可选职务ID不能为空", false);
                    Assert.isNull(inductionRecord_3.getPositionIdNameId(), "D1-3补充系统职务（边界）-1-3-13修改就职记录-冗余职务名称ID不能为空", false);
                    bOOLEAN_1 = mInductionRecordService.updateInductionRecord(inductionRecord_3);


                }
                boolean bOOLEAN_2;
                if (staffing != null) {
                    Staffing staffing_2 = new Staffing();
                    staffing_2.setInductionState("TRUE");//sourceId:37547_1_1825
                    staffing_2.setTempLock("TRUE");//sourceId:37550_1_1825
                    if (staffing != null) {
                        staffing_2.setStaffingId(staffing.getStaffingId());//sourceId:37546_1_1825
                    }
                    if (reqDto != null) {
                        staffing_2.setIsUsedbyPartTime(reqDto.getIsPartTimeStaffing());//sourceId:37804_1_1825
                    }

                    /*1-3-15修改编制（锁定编制等）[186]   */
                    Assert.isNull(staffing_2.getInductionState(), "D1-3补充系统职务（边界）-1-3-15修改编制（锁定编制等）-编制是否在职不能为空", false);
                    Assert.isNull(staffing_2.getTempLock(), "D1-3补充系统职务（边界）-1-3-15修改编制（锁定编制等）-临时锁定状态不能为空", false);
                    Assert.isNull(staffing_2.getIsUsedbyPartTime(), "D1-3补充系统职务（边界）-1-3-15修改编制（锁定编制等）-是否兼职占用不能为空", false);
                    bOOLEAN_2 = mStaffingService.updateStaffing(staffing_2);


                }
//processBranchName:正常结束 ,processBranchId:1826

            } else {
                //else  1827

//异常结束 1828
                throw new BizException("10300014", "对不起，没有空缺岗位，不可加入成员～！", false);
            }
        } else if ((position == null && inductionRecord != null)) {
            //elseif((1-3-05查询职务详情.出参 等于空  and 1-3-13查询就职记录详情.出参 不等于空 ))  1829

//异常结束 1830
            throw new BizException("10300027", "对不起，当前岗位员工已经在部门下或选择的职务无效，不可加入～！	", false);
        }
        PerfectSystemPositionRespDto retData = new PerfectSystemPositionRespDto();


        return retData;
    }

    /**
     * D1-3修改就职记录[777]
     * gen by moon at 9/26/2023, 1:16:14 PM
     */
    @Trace(operationName = "D1-3修改就职记录")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public UpdateInductionRecordRespDto updateInductionRecord(UpdateInductionRecordReqDto reqDto) {


        //virtualUsage 1-3-13查询就职记录详情  48745
        InductionRecord inductionRecord = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        queryinductionRecordDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1129142_1_48745
        if (reqDto != null) {
            queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1129141_1_48745
        }

        /*1-3-13查询就职记录详情[165]   */
        Assert.isNull(queryinductionRecordDetailReq.getInductionRecordId(), "D1-3修改就职记录-1-3-13查询就职记录详情-就职记录ID不能为空", false);
        Assert.isNull(queryinductionRecordDetailReq.getSpaceId(), "D1-3修改就职记录-1-3-13查询就职记录详情-创建于空间ID不能为空", false);
        inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


//virtualUsage 1-2-02查个人姓名  48842
        Userinfo userinfo = null;
        if (inductionRecord != null) {
            QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
            if (inductionRecord != null) {
                queryUserinfoDetailReq.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:1132580_1_48842
            }

            /*1-2-02查个人姓名[155]   */
            Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-3修改就职记录-1-2-02查个人姓名-账号不能为空", false);
            userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        }
//virtualUsage 1-3-13修改就职记录  48741
        boolean bOOLEAN;
        InductionRecord inductionRecord_2 = new InductionRecord();
        if (reqDto != null) {
            inductionRecord_2.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:36053_1_48741
            inductionRecord_2.setOrganizationName(reqDto.getOrganizationName());//SimpleFieldAssign//sourceId:36054_1_48741
            inductionRecord_2.setDeptShortName(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:36055_1_48741
            inductionRecord_2.setOrderNumber(reqDto.getOrderNumber());//SimpleFieldAssign//sourceId:36056_1_48741
            inductionRecord_2.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:36059_1_48741
            inductionRecord_2.setPositionIdName(reqDto.getPositionIdName());//SimpleFieldAssign//sourceId:36062_1_48741
            inductionRecord_2.setStationGradeId(reqDto.getStationGradeId());//SimpleFieldAssign//sourceId:36526_1_48741
            inductionRecord_2.setStationGradeName(reqDto.getStationGradeName());//SimpleFieldAssign//sourceId:36527_1_48741
            inductionRecord_2.setInductionStartTime(reqDto.getInductionStartTime());//SimpleFieldAssign//sourceId:36064_1_48741
            inductionRecord_2.setDirectorInductionRecordId(reqDto.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:36065_1_48741
            inductionRecord_2.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:247094_1_48741
            inductionRecord_2.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132531_1_48741
        }

        /*1-3-13修改就职记录[163]   */
        Assert.isNull(inductionRecord_2.getInductionRecordId(), "D1-3修改就职记录-1-3-13修改就职记录-就职记录ID不能为空", false);
        bOOLEAN = mInductionRecordService.updateInductionRecord(inductionRecord_2)/*vcase invoke 本地 method 方法调用;*/;


        if ((reqDto != null && reqDto.getIsDirector() != null && reqDto.getIsDirector().equals("TRUE") && inductionRecord != null && inductionRecord.getInductionUnitTypeCode() != null && inductionRecord.getInductionUnitTypeCode().equals("DEPT"))) {
            //if((D1-3修改就职记录.是否主管 等于 是  and 1-3-13查询就职记录详情.就职单位类型实例 等于 部门))  48742

            ImplementWriteBackDeptControllerDisposeComRespDto implementWriteBackDeptControllerDisposeComRespDto = null;
            if (userinfo != null && inductionRecord != null) {
                ImplementWriteBackDeptControllerDisposeComReqDto implementWriteBackDeptControllerDisposeComReqDto = new ImplementWriteBackDeptControllerDisposeComReqDto();
                if (userinfo != null) {
                    implementWriteBackDeptControllerDisposeComReqDto.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:1132547_1_48743
                }
                if (reqDto != null) {
                    implementWriteBackDeptControllerDisposeComReqDto.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:1129065_1_48743
                    implementWriteBackDeptControllerDisposeComReqDto.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132546_1_48743
                }
                if (inductionRecord != null) {
                    implementWriteBackDeptControllerDisposeComReqDto.setDeptId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:1129067_1_48743
                    implementWriteBackDeptControllerDisposeComReqDto.setOrganizationId(inductionRecord.getOrganizationId());//SimpleFieldAssign//sourceId:1129068_1_48743
                }

                /*D1执行回写部门主管(公共)[7424]   */
                Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getIdCardName(), "D1-3修改就职记录-D1执行回写部门主管(公共)-真实姓名不能为空", false);
                Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getIsDirector(), "D1-3修改就职记录-D1执行回写部门主管(公共)-是否主管不能为空", false);
                Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getDeptId(), "D1-3修改就职记录-D1执行回写部门主管(公共)-部门ID不能为空", false);
                Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getOrganizationId(), "D1-3修改就职记录-D1执行回写部门主管(公共)-组织ID不能为空", false);
                implementWriteBackDeptControllerDisposeComRespDto = implementWriteBackDeptControllerDisposeCom(implementWriteBackDeptControllerDisposeComReqDto)/*vcase invoke 同服务,同domain*/;


            }
        }
        if ((reqDto != null && reqDto.getIsDirector() != null && reqDto.getIsDirector().equals("FALSE") && inductionRecord != null && inductionRecord.getIsDirector() != null && inductionRecord.getIsDirector().equals("TRUE"))) {
            //if((D1-3修改就职记录.是否主管 等于 否 and 1-3-13查询就职记录详情.是否主管 等于 是))  48844

            ImplementClearDeptDirectorComRespDto implementClearDeptDirectorComRespDto = null;
            if (inductionRecord != null && userinfo != null) {
                ImplementClearDeptDirectorComReqDto implementClearDeptDirectorComReqDto = new ImplementClearDeptDirectorComReqDto();
                if (inductionRecord != null) {
                    implementClearDeptDirectorComReqDto.setDeptId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:1135385_1_48919
                    implementClearDeptDirectorComReqDto.setIsXzDirector(inductionRecord.getIsXzDirector());//SimpleFieldAssign//sourceId:1135386_1_48919
                }
                if (userinfo != null) {
                    implementClearDeptDirectorComReqDto.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:1135389_1_48919
                }

                /*D1执行清除部门主管(公共)[7432]   */
                Assert.isNull(implementClearDeptDirectorComReqDto.getDeptId(), "D1-3修改就职记录-D1执行清除部门主管(公共)-部门ID不能为空", false);
                Assert.isNull(implementClearDeptDirectorComReqDto.getIsXzDirector(), "D1-3修改就职记录-D1执行清除部门主管(公共)-是否行政主管不能为空", false);
                Assert.isNull(implementClearDeptDirectorComReqDto.getIdCardName(), "D1-3修改就职记录-D1执行清除部门主管(公共)-真实姓名不能为空", false);
                implementClearDeptDirectorComRespDto = orgService.implementClearDeptDirectorCom(implementClearDeptDirectorComReqDto)/*vcase invoke isSameApp*/;


            }
        } else if ((reqDto != null && reqDto.getIsXzDirector() != null && reqDto.getIsXzDirector().equals("TRUE") || reqDto != null && reqDto.getIsXzDirector() != null && reqDto.getIsXzDirector().equals("FALSE"))) {
            //elseif((D1-3修改就职记录.是否行政主管 等于 是 or D1-3修改就职记录.是否行政主管 等于 否))  48920

            InductionRecord inductionRecord_3 = null;
            QueryinductionRecordDetailReq queryinductionRecordDetailReq_1 = new QueryinductionRecordDetailReq();
            queryinductionRecordDetailReq_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1129142_1_48948
            if (reqDto != null) {
                queryinductionRecordDetailReq_1.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1129141_1_48948
            }

            /*1-3-13查询就职记录详情[165]   */
            Assert.isNull(queryinductionRecordDetailReq_1.getInductionRecordId(), "D1-3修改就职记录-1-3-13查询就职记录详情-就职记录ID不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq_1.getSpaceId(), "D1-3修改就职记录-1-3-13查询就职记录详情-创建于空间ID不能为空", false);
            inductionRecord_3 = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;


            ImplementClearDeptDirectorComRespDto implementClearDeptDirectorComRespDto_1 = null;
            if (inductionRecord != null && inductionRecord_3 != null && userinfo != null) {
                ImplementClearDeptDirectorComReqDto implementClearDeptDirectorComReqDto_1 = new ImplementClearDeptDirectorComReqDto();
                if (inductionRecord != null) {
                    implementClearDeptDirectorComReqDto_1.setDeptId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:1135385_1_48921
                }
                if (inductionRecord_3 != null) {
                    implementClearDeptDirectorComReqDto_1.setIsXzDirector(inductionRecord_3.getIsXzDirector());//SimpleFieldAssign//sourceId:1135386_1_48921
                }
                if (userinfo != null) {
                    implementClearDeptDirectorComReqDto_1.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:1135389_1_48921
                }

                /*D1执行清除部门主管(公共)[7432]   */
                Assert.isNull(implementClearDeptDirectorComReqDto_1.getDeptId(), "D1-3修改就职记录-D1执行清除部门主管(公共)-部门ID不能为空", false);
                Assert.isNull(implementClearDeptDirectorComReqDto_1.getIsXzDirector(), "D1-3修改就职记录-D1执行清除部门主管(公共)-是否行政主管不能为空", false);
                Assert.isNull(implementClearDeptDirectorComReqDto_1.getIdCardName(), "D1-3修改就职记录-D1执行清除部门主管(公共)-真实姓名不能为空", false);
                implementClearDeptDirectorComRespDto_1 = orgService.implementClearDeptDirectorCom(implementClearDeptDirectorComReqDto_1)/*vcase invoke isSameApp*/;


            }
        }
        UpdateInductionRecordRespDto retData = new UpdateInductionRecordRespDto();


        return retData;
    }

    /**
     * D1-3查询就职记录详情(边界)[1340]
     * gen by moon at 12/15/2023, 10:52:15 PM
     */
    @Trace(operationName = "D1-3查询就职记录详情(边界)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryInductionRecordDetailBorderRespDto queryInductionRecordDetailBorder(QueryInductionRecordDetailBorderReqDto reqDto) {


        InductionRecord inductionRecord_1 = null;
        OriginalRoleMemberInfo originalRoleMemberInfo_1 = null;
        Userinfo userinfo_1 = null;
//步骤0: 1-3-13查询就职记录详情 - queryinductionRecordDetail
        InductionRecord inductionRecord = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        if (reqDto != null) {
            queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:72721_1
            queryinductionRecordDetailReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:31158_1
            queryinductionRecordDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:31163_1
            queryinductionRecordDetailReq.setIsMainInduction(reqDto.getIsMainInduction());//SimpleFieldAssign//sourceId:31176_1
            queryinductionRecordDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:31213_1
        }

        /*1-3-13查询就职记录详情[165]   */

        inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        inductionRecord_1 = inductionRecord;

//步骤1: 1-2-10查询身份人员资料详情 - queryBeginMembInfoDetail
        OriginalRoleMemberInfo originalRoleMemberInfo = null;
        if (inductionRecord != null) {
            QueryBeginMembInfoDetailReq queryBeginMembInfoDetailReq = new QueryBeginMembInfoDetailReq();
            if (inductionRecord != null) {
                queryBeginMembInfoDetailReq.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:94120_1
                queryBeginMembInfoDetailReq.setSpaceId(inductionRecord.getSpaceId());//SimpleFieldAssign//sourceId:94124_1
            }

            /*1-2-10查询身份人员资料详情[116]   */
            Assert.isNull(queryBeginMembInfoDetailReq.getOriginalRoleMemberId(), "D1-3查询就职记录详情(边界)-1-2-10查询身份人员资料详情-身份人员ID不能为空", false);
            Assert.isNull(queryBeginMembInfoDetailReq.getSpaceId(), "D1-3查询就职记录详情(边界)-1-2-10查询身份人员资料详情-创建于空间ID不能为空", false);
            originalRoleMemberInfo = mOriginalRoleMemberInfoService.queryBeginMembInfoDetail(queryBeginMembInfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            originalRoleMemberInfo_1 = originalRoleMemberInfo;
        }

//步骤2: 1-2-02查询个人资料详情 - queryUserinfoDetail
        Userinfo userinfo = null;
        if (inductionRecord != null) {
            QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
            if (inductionRecord != null) {
                queryUserinfoDetailReq.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:94184_1
            }

            /*1-2-02查询个人资料详情[155]   */
            Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-3查询就职记录详情(边界)-1-2-02查询个人资料详情-账号不能为空", false);
            userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            userinfo_1 = userinfo;
        }

        QueryInductionRecordDetailBorderRespDto retData = new QueryInductionRecordDetailBorderRespDto();
        if (inductionRecord_1 != null) {
            retData.setInductionRecordId(inductionRecord_1.getInductionRecordId());//SimpleFieldAssign//sourceId:31183_1
            retData.setInductionUnitTypeCode(inductionRecord_1.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:31184_1
            retData.setEntityId(inductionRecord_1.getEntityId());//SimpleFieldAssign//sourceId:31185_1
            retData.setOriginalRoleMemberId(inductionRecord_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:31186_1
            retData.setUserId(inductionRecord_1.getUserId());//SimpleFieldAssign//sourceId:31187_1
            retData.setOrganizationId(inductionRecord_1.getOrganizationId());//SimpleFieldAssign//sourceId:31188_1
            retData.setOrganizationName(inductionRecord_1.getOrganizationName());//SimpleFieldAssign//sourceId:31189_1
            retData.setDeptShortName(inductionRecord_1.getDeptShortName());//SimpleFieldAssign//sourceId:31190_1
            retData.setFirstLetter(inductionRecord_1.getFirstLetter());//SimpleFieldAssign//sourceId:72724_1
            retData.setIsMainInduction(inductionRecord_1.getIsMainInduction());//SimpleFieldAssign//sourceId:31191_1
        }
        if (userinfo_1 != null) {
            retData.setUserFace(userinfo_1.getUserFace());//SimpleFieldAssign//sourceId:94192_1
            retData.setIdCardName(userinfo_1.getIdCardName());//SimpleFieldAssign//sourceId:94190_1
            retData.setNickName(userinfo_1.getNickName());//SimpleFieldAssign//sourceId:94191_1
        }
        if (originalRoleMemberInfo_1 != null) {
            retData.setRoleMemberCode(originalRoleMemberInfo_1.getRoleMemberCode());//SimpleFieldAssign//sourceId:94139_1
            retData.setPositionIdName(originalRoleMemberInfo_1.getPositionIdName());//SimpleFieldAssign//sourceId:94140_1
        }


        return retData;
    }

    /**
     * D1-3删除就职记录[778]
     * gen by moon at 9/22/2023, 6:27:12 PM
     */
    @Trace(operationName = "D1-3删除就职记录")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public DeleteInductionRecordRespDto deleteInductionRecord(DeleteInductionRecordReqDto reqDto) {


        //virtualUsage 1-3-13查询就职记录详情（查编制）  48834
        InductionRecord inductionRecord = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        if (reqDto != null) {
            queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:37959_1_48834
        }

        /*1-3-13查询就职记录详情（查编制）[165]   */
        Assert.isNull(queryinductionRecordDetailReq.getInductionRecordId(), "D1-3删除就职记录-1-3-13查询就职记录详情（查编制）-就职记录ID不能为空", false);
        inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


//virtualUsage 1-3-13删除就职记录  48835
        boolean bOOLEAN;
        String string = new String();
        if (reqDto != null) {
            string = reqDto.getInductionRecordId();
            ;//SimpleFieldAssign//sourceId:37839_1_48835
        }

        /*1-3-13删除就职记录[164]   */
        Assert.isNull(string, "D1-3删除就职记录-1-3-13删除就职记录-就职记录ID不能为空", false);
        bOOLEAN = mInductionRecordService.deleteInductionRecord(string)/*vcase invoke 本地 method 方法调用;*/;


        if ((inductionRecord != null && inductionRecord.getStaffingId() != null)) {
            //if(1-3-13查询就职记录详情（查编制）.编制ID 值不等于空 )  48837

            boolean bOOLEAN_1;
            if (inductionRecord != null) {
                Staffing staffing = new Staffing();
                staffing.setInductionState("FALSE");//sourceId:37962_1_48838
                staffing.setTempLock("FALSE");//sourceId:37964_1_48838
                if (inductionRecord != null) {
                    staffing.setStaffingId(inductionRecord.getStaffingId());//SimpleFieldAssign//sourceId:37961_1_48838
                }

                /*1-3-15修改编制（删除释放）[186]   */
                Assert.isNull(staffing.getInductionState(), "D1-3删除就职记录-1-3-15修改编制（删除释放）-编制是否在职不能为空", false);
                Assert.isNull(staffing.getIsUsedbyPartTime(), "D1-3删除就职记录-1-3-15修改编制（删除释放）-是否兼职占用不能为空", false);
                Assert.isNull(staffing.getTempLock(), "D1-3删除就职记录-1-3-15修改编制（删除释放）-临时锁定状态不能为空", false);
                bOOLEAN_1 = mStaffingService.updateStaffing(staffing)/*vcase invoke 本地 method 方法调用;*/;


            }
        }
//virtualUsage D1-1批量删底层变更字段(公共)  48839
        BatchDeleteBaseChangeColComRespDto batchDeleteBaseChangeColComRespDto = null;
        BatchDeleteBaseChangeColComReqDto batchDeleteBaseChangeColComReqDto = new BatchDeleteBaseChangeColComReqDto();
        batchDeleteBaseChangeColComReqDto.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:155284_1_48839
        if (reqDto != null) {
            batchDeleteBaseChangeColComReqDto.setEntityId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:155285_1_48839
        }

        /*D1-1批量删底层变更字段(公共)[3540]   */
        Assert.isNull(batchDeleteBaseChangeColComReqDto.getEntityId(), "D1-3删除就职记录-D1-1批量删底层变更字段(公共)-内容表主键ID不能为空", false);
        Assert.isNull(batchDeleteBaseChangeColComReqDto.getTableTypeCode(), "D1-3删除就职记录-D1-1批量删底层变更字段(公共)-内容表类型编码不能为空", false);
        batchDeleteBaseChangeColComRespDto = changeColumnService.batchDeleteBaseChangeColCom(batchDeleteBaseChangeColComReqDto)/*vcase invoke isSameApp*/;


        if ((inductionRecord != null && inductionRecord.getIsDirector() != null && inductionRecord.getIsDirector().equals("TRUE"))) {
            //if(1-3-13查询就职记录详情（查编制）.是否主管 等于 是)  48851

//ModelCode: receptionService
            QueryReceiveFieldDetailRespDto receptionServiceRes = null;
            QueryReceiveFieldDetailReqDto receptionServiceReq = new QueryReceiveFieldDetailReqDto();
            receptionServiceReq.setCustomField("--");//CUSTOM_CONVENTION//sourceId:1132507_1_48855

            /*M1约定置空字段值[3715]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq.getCustomField(), "D1-3删除就职记录-M1约定置空字段值-自定义字段不能为空", false);
            receptionServiceRes = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq);


            if ((inductionRecord != null && inductionRecord.getIsXzDirector() != null && inductionRecord.getIsXzDirector().equals("TRUE"))) {
                //if(1-3-13查询就职记录详情（查编制）.是否行政主管 等于 是)  48853

                boolean bOOLEAN_2;
                if (inductionRecord != null) {
                    Dept dept = new Dept();
                    if (inductionRecord != null) {
                        dept.setDeptId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:1132611_1_48854
                    }
                    if (receptionServiceRes != null) {
                        dept.setDirectorIdCardName(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1132612_1_48854
                    }

                    /*1-3-09清除部门主管姓名[215]   */
                    Assert.isNull(dept.getDeptId(), "D1-3删除就职记录-1-3-09清除部门主管姓名-部门ID不能为空", false);
                    bOOLEAN_2 = mDeptService.updateDept(dept)/*vcase invoke 本地 method 方法调用;*/;


                }
            } else if ((inductionRecord != null && inductionRecord.getIsXzDirector() != null && inductionRecord.getIsXzDirector().equals("FALSE"))) {
                //elseif(1-3-13查询就职记录详情（查编制）.是否行政主管 等于 否)  48856

                boolean bOOLEAN_3;
                if (inductionRecord != null) {
                    Dept dept_1 = new Dept();
                    if (inductionRecord != null) {
                        dept_1.setDeptId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:1132611_1_48857
                    }
                    if (receptionServiceRes != null) {
                        dept_1.setPartyAndYouthDirectorIdCardName(receptionServiceRes.getCustomField());//SimpleFieldAssign//sourceId:1132613_1_48857
                    }

                    /*1-3-09清除部门主管姓名[215]   */
                    Assert.isNull(dept_1.getDeptId(), "D1-3删除就职记录-1-3-09清除部门主管姓名-部门ID不能为空", false);
                    bOOLEAN_3 = mDeptService.updateDept(dept_1)/*vcase invoke 本地 method 方法调用;*/;


                }
            }
        }
        DeleteInductionRecordRespDto retData = new DeleteInductionRecordRespDto();


        return retData;
    }

    /**
     * D1判断新增就职记录操作可用(公共)[3866]
     * gen by moon at 9/20/2023, 11:29:35 PM
     */
    @Trace(operationName = "D1判断新增就职记录操作可用(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public JudgeAddInductionRecordUsableComRespDto judgeAddInductionRecordUsableCom(JudgeAddInductionRecordUsableComReqDto reqDto) {


        QueryItemMatchResultToAnswerDetailComRespDto queryItemMatchResultToAnswerDetailComRespDto_1 = null;
        JudgeOrgOnlyPowerComRespDto judgeOrgOnlyPowerComRespDto_1 = null;
//virtualUsage D2-3查询配置项匹配结果转答案(公共)  12389
        QueryItemMatchResultToAnswerDetailComRespDto queryItemMatchResultToAnswerDetailComRespDto = null;
        QueryItemMatchResultToAnswerDetailComReqDto queryItemMatchResultToAnswerDetailComReqDto = new QueryItemMatchResultToAnswerDetailComReqDto();
        queryItemMatchResultToAnswerDetailComReqDto.setConfItemCode("ORG_STRUCTURE_MODEL");//CUSTOM_CONVENTION//sourceId:194054_1_12389
        queryItemMatchResultToAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:194055_1_12389
        queryItemMatchResultToAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:194056_1_12389
        queryItemMatchResultToAnswerDetailComReqDto.setIsInitialScheme("TRUE");//sourceId:308479_1_12389
        queryItemMatchResultToAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:308480_1_12389

        /*D2-3查询配置项匹配结果转答案(公共)[3094]   */
        Assert.isNull(queryItemMatchResultToAnswerDetailComReqDto.getConfItemCode(), "D1判断新增就职记录操作可用(公共)-D2-3查询配置项匹配结果转答案(公共)-配置项标识不能为空", false);
        Assert.isNull(queryItemMatchResultToAnswerDetailComReqDto.getResultAspObjType(), "D1判断新增就职记录操作可用(公共)-D2-3查询配置项匹配结果转答案(公共)-开通对象类型编码不能为空", false);
        Assert.isNull(queryItemMatchResultToAnswerDetailComReqDto.getResultAspObjId(), "D1判断新增就职记录操作可用(公共)-D2-3查询配置项匹配结果转答案(公共)-开通对象ID不能为空", false);
        Assert.isNull(queryItemMatchResultToAnswerDetailComReqDto.getIsInitialScheme(), "D1判断新增就职记录操作可用(公共)-D2-3查询配置项匹配结果转答案(公共)-是否初始方案答案不能为空", false);
        Assert.isNull(queryItemMatchResultToAnswerDetailComReqDto.getIsPlatData(), "D1判断新增就职记录操作可用(公共)-D2-3查询配置项匹配结果转答案(公共)-是否标准答案不能为空", false);
        queryItemMatchResultToAnswerDetailComRespDto = confSchemeService.queryItemMatchResultToAnswerDetailCom(queryItemMatchResultToAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
        Assert.isTrue(queryItemMatchResultToAnswerDetailComRespDto == null || queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel() == null, "找不到数据，系统异常", false);

        queryItemMatchResultToAnswerDetailComRespDto_1 = queryItemMatchResultToAnswerDetailComRespDto;
        if ((queryItemMatchResultToAnswerDetailComRespDto != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel() != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel().equals("EASY"))) {
            //if(D2-3查询配置项匹配结果转答案(公共).空间组织架构模式 等于 宽松型)  12392

            InductionRecord inductionRecord = null;
            QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
            queryinductionRecordDetailReq.setIsTransaction("FALSE");//sourceId:194053_1_12393
            queryinductionRecordDetailReq.setIsArchive("FALSE");//sourceId:194044_1_12393
            queryinductionRecordDetailReq.setArchivngType("NOT_ARCHIVE");//sourceId:194166_1_12393
            if (reqDto != null) {
                queryinductionRecordDetailReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:194040_1_12393
                queryinductionRecordDetailReq.setPositionIdName(reqDto.getPositionIdName());//SimpleFieldAssign//sourceId:194050_1_12393
                queryinductionRecordDetailReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:194041_1_12393
                queryinductionRecordDetailReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:194042_1_12393
                queryinductionRecordDetailReq.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:194051_1_12393
            }

            /*1-3-13查询就职记录（判断该职务名称的人员是否存在）[165]   */
            Assert.isNull(queryinductionRecordDetailReq.getOriginalRoleMemberId(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务名称的人员是否存在）-身份人员ID不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq.getIsTransaction(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务名称的人员是否存在）-是否异动不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq.getIsArchive(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务名称的人员是否存在）-是否存档不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq.getArchivngType(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务名称的人员是否存在）-存档类型不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq.getInductionUnitTypeCode(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务名称的人员是否存在）-就职单位类型实例不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq.getEntityId(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务名称的人员是否存在）-就职单位对象实例ID不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq.getOrganizationId(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务名称的人员是否存在）-组织ID不能为空", false);
            inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((inductionRecord == null)) {
                //if(1-3-13查询就职记录（判断该职务名称的人员是否存在）.出参 值等于空 )  12397

                JudgeOrgOnlyPowerComRespDto judgeOrgOnlyPowerComRespDto = null;
                JudgeOrgOnlyPowerComReqDto judgeOrgOnlyPowerComReqDto = new JudgeOrgOnlyPowerComReqDto();
                judgeOrgOnlyPowerComReqDto.setRoleCode("ORG_ADMIN");//CUSTOM_CONVENTION//sourceId:194404_1_12417
                judgeOrgOnlyPowerComReqDto.setPrivacyCode("MGT_ORG_POWER");//CUSTOM_CONVENTION//sourceId:194405_1_12417
                if (reqDto != null) {
                    judgeOrgOnlyPowerComReqDto.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:194406_1_12417
                    judgeOrgOnlyPowerComReqDto.setBatchMgtOperationType(reqDto.getBatchMgtOperationType());//SimpleFieldAssign//sourceId:200148_1_12417
                }

                /*D1判断组织架构唯一权限(公共)[3877]   */
                Assert.isNull(judgeOrgOnlyPowerComReqDto.getOrganizationId(), "D1判断新增就职记录操作可用(公共)-D1判断组织架构唯一权限(公共)-组织ID不能为空", false);
                Assert.isNull(judgeOrgOnlyPowerComReqDto.getRoleCode(), "D1判断新增就职记录操作可用(公共)-D1判断组织架构唯一权限(公共)-角色标识不能为空", false);
                Assert.isNull(judgeOrgOnlyPowerComReqDto.getPrivacyCode(), "D1判断新增就职记录操作可用(公共)-D1判断组织架构唯一权限(公共)-权限标识不能为空", false);
                Assert.isNull(judgeOrgOnlyPowerComReqDto.getBatchMgtOperationType(), "D1判断新增就职记录操作可用(公共)-D1判断组织架构唯一权限(公共)-批次下管理操作类型不能为空", false);
                judgeOrgOnlyPowerComRespDto = powerService.judgeOrgOnlyPowerCom(judgeOrgOnlyPowerComReqDto)/*vcase invoke isSameApp*/;


                judgeOrgOnlyPowerComRespDto_1 = judgeOrgOnlyPowerComRespDto;
//processBranchName:正常结束 ,processBranchId:12419

            } else {
                //else  12421

//异常结束 12422
                throw new BizException("10300017", "对不起，该岗位名称的员工已在部门下，不可加入！	", false);
            }
        } else if ((queryItemMatchResultToAnswerDetailComRespDto != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel() != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel().equals("STRICT") || queryItemMatchResultToAnswerDetailComRespDto != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel() != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel().equals("PLAN_STAFFING"))) {
            //elseif((D2-3查询配置项匹配结果转答案(公共).空间组织架构模式 等于 严谨型 or D2-3查询配置项匹配结果转答案(公共).空间组织架构模式 等于 计划编制型))  12394

            InductionRecord inductionRecord_2 = null;
            QueryinductionRecordDetailReq queryinductionRecordDetailReq_1 = new QueryinductionRecordDetailReq();
            queryinductionRecordDetailReq_1.setIsArchive("FALSE");//sourceId:193975_1_12395
            queryinductionRecordDetailReq_1.setArchivngType("NOT_ARCHIVE");//sourceId:194160_1_12395
            if (reqDto != null) {
                queryinductionRecordDetailReq_1.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:193971_1_12395
                queryinductionRecordDetailReq_1.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:193967_1_12395
                queryinductionRecordDetailReq_1.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:193972_1_12395
                queryinductionRecordDetailReq_1.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:193973_1_12395
                queryinductionRecordDetailReq_1.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:193982_1_12395
            }

            /*1-3-13查询就职记录（判断该职务员工是否存在）[165]   */
            Assert.isNull(queryinductionRecordDetailReq_1.getOriginalRoleMemberId(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务员工是否存在）-身份人员ID不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq_1.getIsArchive(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务员工是否存在）-是否存档不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq_1.getArchivngType(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务员工是否存在）-存档类型不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq_1.getInductionUnitTypeCode(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务员工是否存在）-就职单位类型实例不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq_1.getEntityId(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务员工是否存在）-就职单位对象实例ID不能为空", false);
            Assert.isNull(queryinductionRecordDetailReq_1.getOrganizationId(), "D1判断新增就职记录操作可用(公共)-1-3-13查询就职记录（判断该职务员工是否存在）-组织ID不能为空", false);
            inductionRecord_2 = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;


            Position position = null;
            QueryPositionDetailReq queryPositionDetailReq = new QueryPositionDetailReq();
            queryPositionDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:193903_1_12396
            queryPositionDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:194157_1_12396
            if (reqDto != null) {
                queryPositionDetailReq.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:193886_1_12396
            }

            /*1-3-05查询职务（判断系统职务是否有效）[146]   */
            Assert.isNull(queryPositionDetailReq.getPositionId(), "D1判断新增就职记录操作可用(公共)-1-3-05查询职务（判断系统职务是否有效）-职务ID不能为空", false);
            Assert.isNull(queryPositionDetailReq.getSubjectLifeCycle(), "D1判断新增就职记录操作可用(公共)-1-3-05查询职务（判断系统职务是否有效）-主体生命周期不能为空", false);
            Assert.isNull(queryPositionDetailReq.getSpaceId(), "D1判断新增就职记录操作可用(公共)-1-3-05查询职务（判断系统职务是否有效）-创建于空间ID不能为空", false);
            position = mPositionService.queryPositionDetail(queryPositionDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((inductionRecord_2 != null && inductionRecord_2.getInductionRecordId() == null && position != null && position.getPositionId() != null)) {
                //if((1-3-13查询就职记录（判断该职务员工是否存在）.就职记录ID 值等于空  and 1-3-05查询职务（判断系统职务是否有效）.职务ID 值不等于空 ))  12402

                JudgeOrgOnlyPowerComRespDto judgeOrgOnlyPowerComRespDto_2 = null;
                JudgeOrgOnlyPowerComReqDto judgeOrgOnlyPowerComReqDto_1 = new JudgeOrgOnlyPowerComReqDto();
                judgeOrgOnlyPowerComReqDto_1.setRoleCode("ORG_ADMIN");//CUSTOM_CONVENTION//sourceId:194404_1_12418
                judgeOrgOnlyPowerComReqDto_1.setPrivacyCode("MGT_ORG_POWER");//CUSTOM_CONVENTION//sourceId:194405_1_12418
                if (reqDto != null) {
                    judgeOrgOnlyPowerComReqDto_1.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:194406_1_12418
                    judgeOrgOnlyPowerComReqDto_1.setBatchMgtOperationType(reqDto.getBatchMgtOperationType());//SimpleFieldAssign//sourceId:200148_1_12418
                }

                /*D1判断组织架构唯一权限(公共)[3877]   */
                Assert.isNull(judgeOrgOnlyPowerComReqDto_1.getOrganizationId(), "D1判断新增就职记录操作可用(公共)-D1判断组织架构唯一权限(公共)-组织ID不能为空", false);
                Assert.isNull(judgeOrgOnlyPowerComReqDto_1.getRoleCode(), "D1判断新增就职记录操作可用(公共)-D1判断组织架构唯一权限(公共)-角色标识不能为空", false);
                Assert.isNull(judgeOrgOnlyPowerComReqDto_1.getPrivacyCode(), "D1判断新增就职记录操作可用(公共)-D1判断组织架构唯一权限(公共)-权限标识不能为空", false);
                Assert.isNull(judgeOrgOnlyPowerComReqDto_1.getBatchMgtOperationType(), "D1判断新增就职记录操作可用(公共)-D1判断组织架构唯一权限(公共)-批次下管理操作类型不能为空", false);
                judgeOrgOnlyPowerComRespDto_2 = powerService.judgeOrgOnlyPowerCom(judgeOrgOnlyPowerComReqDto_1)/*vcase invoke isSameApp*/;


                judgeOrgOnlyPowerComRespDto_1 = judgeOrgOnlyPowerComRespDto_2;
//processBranchName:正常结束 ,processBranchId:12420

            } else if ((inductionRecord_2 != null && inductionRecord_2.getInductionRecordId() != null)) {
                //elseif(1-3-13查询就职记录（判断该职务员工是否存在）.就职记录ID 值不等于空 )  12425

//异常结束 12426
                throw new BizException("10300015", "对不起，当前岗位员工已经在部门下，不可加入！", false);
            } else if ((position != null && position.getPositionId() == null)) {
                //elseif(1-3-05查询职务（判断系统职务是否有效）.职务ID 值等于空 )  12427

//异常结束 12430
                throw new BizException("10300016", "对不起，选择的系统职务无效，不可加入！", false);
            }
        } else if ((queryItemMatchResultToAnswerDetailComRespDto != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel() != null && queryItemMatchResultToAnswerDetailComRespDto.getOrgStructureModel().equals("NO_ORG"))) {
            //elseif(D2-3查询配置项匹配结果转答案(公共).空间组织架构模式 等于 无组织架构)  12407

//异常结束 12408
            throw new BizException("500", "系统异常，请联系管理员！", false);
        }
        JudgeAddInductionRecordUsableComRespDto retData = new JudgeAddInductionRecordUsableComRespDto();
        if (judgeOrgOnlyPowerComRespDto_1 != null) {
            retData.setOutputNum(judgeOrgOnlyPowerComRespDto_1.getOutputNum());//SimpleFieldAssign//sourceId:194413_1
            retData.setBatchId(judgeOrgOnlyPowerComRespDto_1.getBatchId());//SimpleFieldAssign//sourceId:200150_1
            retData.setBatchCurrentStatus(judgeOrgOnlyPowerComRespDto_1.getBatchCurrentStatus());//SimpleFieldAssign//sourceId:194411_1
        }
        if (queryItemMatchResultToAnswerDetailComRespDto_1 != null) {
            retData.setOrgStructureModel(queryItemMatchResultToAnswerDetailComRespDto_1.getOrgStructureModel());//SimpleFieldAssign//sourceId:194193_1
        }


        return retData;
    }

    /**
     * D1-3批量查询就职记录(边界)[3272]
     * gen by moon at 9/11/2022, 5:11:23 AM
     */
    @Trace(operationName = "D1-3批量查询就职记录(边界)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryInductionRecordBorderRespDto batchQueryInductionRecordBorder(BatchQueryInductionRecordBorderReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
//步骤0: 1-3-13批量查询就职记录列表ByUserId - batchQueryInductionRecordListByUserId
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        BatchQueryInductionRecordListByUserIdReq batchQueryInductionRecordListByUserIdReq = new BatchQueryInductionRecordListByUserIdReq();
        batchQueryInductionRecordListByUserIdReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:125204_1
        batchQueryInductionRecordListByUserIdReq.setOrganizationId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecOrganizationId());//CURRENT_ORGID//sourceId:125202_1
        batchQueryInductionRecordListByUserIdReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:125207_1
        if (reqDto != null) {
            batchQueryInductionRecordListByUserIdReq.setOrgInductionRecordList(reqDto.getOrgInductionRecordList());//sourceId:125208_1
            batchQueryInductionRecordListByUserIdReq.setIsTransaction(reqDto.getIsTransaction());//sourceId:125203_1
            batchQueryInductionRecordListByUserIdReq.setIsMainInduction(reqDto.getIsMainInduction());//sourceId:125210_1
        }

        /*1-3-13批量查询就职记录列表ByUserId[1703]   */
        Assert.isNull(batchQueryInductionRecordListByUserIdReq.getSubjectLifeCycle(), "D1-3批量查询就职记录(边界)-1-3-13批量查询就职记录列表ByUserId-主体生命周期不能为空", false);
        Assert.isNull(batchQueryInductionRecordListByUserIdReq.getOrganizationId(), "D1-3批量查询就职记录(边界)-1-3-13批量查询就职记录列表ByUserId-组织ID不能为空", false);
        Assert.isNull(batchQueryInductionRecordListByUserIdReq.getSpaceId(), "D1-3批量查询就职记录(边界)-1-3-13批量查询就职记录列表ByUserId-创建于空间ID不能为空", false);
        listInductionRecord = mInductionRecordService.batchQueryInductionRecordListByUserId(batchQueryInductionRecordListByUserIdReq);


        listInductionRecord_1 = listInductionRecord;

        BatchQueryInductionRecordBorderRespDto retData = new BatchQueryInductionRecordBorderRespDto();
        retData.setOrgInductionRecordList(listInductionRecord_1.stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//sourceId:125216_1


        return retData;
    }

    /**
     * D1-3新增就职记录[403]
     * gen by moon at 4/1/2024, 1:39:00 AM
     */
    @Trace(operationName = "D1-3新增就职记录")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddInductionRecordRespDto addInductionRecord(AddInductionRecordReqDto reqDto) {


        String string_1 = null;
//virtualUsage D1判断新增就职记录操作可用(公共)  12410
        JudgeAddInductionRecordUsableComRespDto judgeAddInductionRecordUsableComRespDto = null;
        JudgeAddInductionRecordUsableComReqDto judgeAddInductionRecordUsableComReqDto = new JudgeAddInductionRecordUsableComReqDto();
        judgeAddInductionRecordUsableComReqDto.setBatchMgtOperationType("MIXTURE_OPERATION");//sourceId:200153_1_12410
        if (reqDto != null) {
            judgeAddInductionRecordUsableComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:194305_1_12410
            judgeAddInductionRecordUsableComReqDto.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:194306_1_12410
            judgeAddInductionRecordUsableComReqDto.setPositionIdName(reqDto.getPositionIdName());//SimpleFieldAssign//sourceId:194310_1_12410
            judgeAddInductionRecordUsableComReqDto.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:194307_1_12410
            judgeAddInductionRecordUsableComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:194308_1_12410
            judgeAddInductionRecordUsableComReqDto.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:194309_1_12410
        }

        /*D1判断新增就职记录操作可用(公共)[3866]   */
        Assert.isNull(judgeAddInductionRecordUsableComReqDto.getOriginalRoleMemberId(), "D1-3新增就职记录-D1判断新增就职记录操作可用(公共)-身份人员ID不能为空", false);
        Assert.isNull(judgeAddInductionRecordUsableComReqDto.getInductionUnitTypeCode(), "D1-3新增就职记录-D1判断新增就职记录操作可用(公共)-就职单位类型实例不能为空", false);
        Assert.isNull(judgeAddInductionRecordUsableComReqDto.getEntityId(), "D1-3新增就职记录-D1判断新增就职记录操作可用(公共)-就职单位对象实例ID不能为空", false);
        Assert.isNull(judgeAddInductionRecordUsableComReqDto.getOrganizationId(), "D1-3新增就职记录-D1判断新增就职记录操作可用(公共)-组织ID不能为空", false);
        Assert.isNull(judgeAddInductionRecordUsableComReqDto.getBatchMgtOperationType(), "D1-3新增就职记录-D1判断新增就职记录操作可用(公共)-批次下管理操作类型不能为空", false);
        judgeAddInductionRecordUsableComRespDto = judgeAddInductionRecordUsableCom(judgeAddInductionRecordUsableComReqDto)/*vcase invoke 同服务,同domain*/;
        Assert.isTrue(judgeAddInductionRecordUsableComRespDto == null || judgeAddInductionRecordUsableComRespDto.getOutputNum() == null, "找不到数据，系统异常", false);


//virtualUsage 1-2-02查询个人资料（查姓名）  9478
        Userinfo userinfo = null;
        QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
        if (reqDto != null) {
            queryUserinfoDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:154780_1_9478
        }

        /*1-2-02查询个人资料（查姓名）[155]   */
        Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-3新增就职记录-1-2-02查询个人资料（查姓名）-账号不能为空", false);
        userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


//virtualUsage D1-执行分析新增就职记录是否主岗(公共)  48628
        ImplementAnalyzeNewInductionRecordIsMajorPositionComRespDto implementAnalyzeNewInductionRecordIsMajorPositionComRespDto = null;
        ImplementAnalyzeNewInductionRecordIsMajorPositionComReqDto implementAnalyzeNewInductionRecordIsMajorPositionComReqDto = new ImplementAnalyzeNewInductionRecordIsMajorPositionComReqDto();
        if (reqDto != null) {
            implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1125354_1_48628
            implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:1125355_1_48628
            implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1125356_1_48628
        }

        /*D1-执行分析新增就职记录是否主岗(公共)[7425]   */
        Assert.isNull(implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.getOriginalRoleMemberId(), "D1-3新增就职记录-D1-执行分析新增就职记录是否主岗(公共)-身份人员ID不能为空", false);
        Assert.isNull(implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.getInductionUnitTypeCode(), "D1-3新增就职记录-D1-执行分析新增就职记录是否主岗(公共)-就职单位类型实例不能为空", false);
        Assert.isNull(implementAnalyzeNewInductionRecordIsMajorPositionComReqDto.getOrganizationId(), "D1-3新增就职记录-D1-执行分析新增就职记录是否主岗(公共)-组织ID不能为空", false);
        implementAnalyzeNewInductionRecordIsMajorPositionComRespDto = implementAnalyzeNewInductionRecordIsMajorPositionCom(implementAnalyzeNewInductionRecordIsMajorPositionComReqDto)/*vcase invoke 同服务,同domain*/;


//virtualUsage D1-2查询中基层部门详情(公共)  65836
        QueryMidBaseCourseDetailComRespDto queryMidBaseCourseDetailComRespDto = null;
        QueryMidBaseCourseDetailComReqDto queryMidBaseCourseDetailComReqDto = new QueryMidBaseCourseDetailComReqDto();
        queryMidBaseCourseDetailComReqDto.setInductionUnitTypeCode("DEPT");//sourceId:1682610_1_65836
        if (reqDto != null) {
            queryMidBaseCourseDetailComReqDto.setDeptId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1682609_1_65836
        }

        /*D1-2查询中基层部门详情(公共)[2604]   */
        Assert.isNull(queryMidBaseCourseDetailComReqDto.getDeptId(), "D1-3新增就职记录-D1-2查询中基层部门详情(公共)-部门ID不能为空", false);
        Assert.isNull(queryMidBaseCourseDetailComReqDto.getInductionUnitTypeCode(), "D1-3新增就职记录-D1-2查询中基层部门详情(公共)-就职单位类型实例不能为空", false);
        queryMidBaseCourseDetailComRespDto = orgService.queryMidBaseCourseDetailCom(queryMidBaseCourseDetailComReqDto)/*vcase invoke isSameApp*/;


        if ((judgeAddInductionRecordUsableComRespDto != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel() != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel().equals("EASY"))) {
            //if(D1判断新增就职记录操作可用(公共).空间组织架构模式 等于 宽松型)  1710

            String string = null;
            if (queryMidBaseCourseDetailComRespDto != null && implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null && judgeAddInductionRecordUsableComRespDto != null) {
                InductionRecord inductionRecord = new InductionRecord();
                inductionRecord.setSubjectLifeCycle("EDITING");//sourceId:35372_1_1728
                inductionRecord.setIsEditing("TRUE");//sourceId:35373_1_1728
                inductionRecord.setIsUpdate("TRUE");//sourceId:35374_1_1728
                inductionRecord.setUpdateStatus("NEW");//sourceId:35375_1_1728
                inductionRecord.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:162564_1_1728
                inductionRecord.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:162565_1_1728
                if (reqDto != null) {
                    inductionRecord.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:22098_1_1728
                    inductionRecord.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:22099_1_1728
                    inductionRecord.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:22100_1_1728
                    inductionRecord.setFirstLetter(reqDto.getFirstLetter());//SimpleFieldAssign//sourceId:22948_1_1728
                    inductionRecord.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:22101_1_1728
                    inductionRecord.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:22102_1_1728
                    inductionRecord.setOrganizationName(reqDto.getOrganizationName());//SimpleFieldAssign//sourceId:22103_1_1728
                    inductionRecord.setDeptShortName(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:35361_1_1728
                    inductionRecord.setIsCustomPosition(reqDto.getIsCustomPosition());//SimpleFieldAssign//sourceId:22108_1_1728
                    inductionRecord.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:35370_1_1728
                    inductionRecord.setOrderNumber(reqDto.getOrderNumber());//SimpleFieldAssign//sourceId:51346_1_1728
                    inductionRecord.setPositionIdName(reqDto.getPositionIdName());//SimpleFieldAssign//sourceId:22112_1_1728
                    inductionRecord.setDirectorInductionRecordId(reqDto.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:22129_1_1728
                    inductionRecord.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:246849_1_1728
                    inductionRecord.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132555_1_1728
                    inductionRecord.setInductionStartTime(reqDto.getInductionStartTime());//SimpleFieldAssign//sourceId:35371_1_1728
                }
                if (queryMidBaseCourseDetailComRespDto != null) {
                    inductionRecord.setPrimaryDeptId(queryMidBaseCourseDetailComRespDto.getPrimaryDeptId());//SimpleFieldAssign//sourceId:1682631_1_1728
                }
                if (implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null) {
                    inductionRecord.setIsMainInduction(implementAnalyzeNewInductionRecordIsMajorPositionComRespDto.getIsMainInduction());//SimpleFieldAssign//sourceId:22107_1_1728
                }
                if (judgeAddInductionRecordUsableComRespDto != null) {
                    inductionRecord.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:22135_1_1728
                }

                /*1-3-13新增就职记录[162]   */
                Assert.isNull(inductionRecord.getInductionUnitTypeCode(), "D1-3新增就职记录-1-3-13新增就职记录-就职单位类型实例不能为空", false);
                Assert.isNull(inductionRecord.getEntityId(), "D1-3新增就职记录-1-3-13新增就职记录-就职单位对象实例ID不能为空", false);
                Assert.isNull(inductionRecord.getPrimaryDeptId(), "D1-3新增就职记录-1-3-13新增就职记录-冗余一级部门ID不能为空", false);
                Assert.isNull(inductionRecord.getOriginalRoleMemberId(), "D1-3新增就职记录-1-3-13新增就职记录-身份人员ID不能为空", false);
                Assert.isNull(inductionRecord.getFirstLetter(), "D1-3新增就职记录-1-3-13新增就职记录-备注首位字母不能为空", false);
                Assert.isNull(inductionRecord.getUserId(), "D1-3新增就职记录-1-3-13新增就职记录-个人账号ID不能为空", false);
                Assert.isNull(inductionRecord.getOrganizationId(), "D1-3新增就职记录-1-3-13新增就职记录-组织ID不能为空", false);
                Assert.isNull(inductionRecord.getOrganizationName(), "D1-3新增就职记录-1-3-13新增就职记录-冗余组织名称不能为空", false);
                Assert.isNull(inductionRecord.getIsMainInduction(), "D1-3新增就职记录-1-3-13新增就职记录-是否主岗不能为空", false);
                Assert.isNull(inductionRecord.getIsCustomPosition(), "D1-3新增就职记录-1-3-13新增就职记录-是否自定义职务不能为空", false);
                Assert.isNull(inductionRecord.getPositionType(), "D1-3新增就职记录-1-3-13新增就职记录-职务性质不能为空", false);
                Assert.isNull(inductionRecord.getOrderNumber(), "D1-3新增就职记录-1-3-13新增就职记录-排序不能为空", false);
                Assert.isNull(inductionRecord.getPositionIdName(), "D1-3新增就职记录-1-3-13新增就职记录-必选冗余职务名称不能为空", false);
                Assert.isNull(inductionRecord.getIsDirector(), "D1-3新增就职记录-1-3-13新增就职记录-是否主管不能为空", false);
                Assert.isNull(inductionRecord.getBatchId(), "D1-3新增就职记录-1-3-13新增就职记录-批次ID不能为空", false);
                Assert.isNull(inductionRecord.getSubjectLifeCycle(), "D1-3新增就职记录-1-3-13新增就职记录-主体生命周期不能为空", false);
                Assert.isNull(inductionRecord.getIsEditing(), "D1-3新增就职记录-1-3-13新增就职记录-是否未来不能为空", false);
                Assert.isNull(inductionRecord.getIsUpdate(), "D1-3新增就职记录-1-3-13新增就职记录-批次下是否更新不能为空", false);
                Assert.isNull(inductionRecord.getUpdateStatus(), "D1-3新增就职记录-1-3-13新增就职记录-批次下更新状态不能为空", false);
                Assert.isNull(inductionRecord.getSpaceId(), "D1-3新增就职记录-1-3-13新增就职记录-创建于空间ID不能为空", false);
                Assert.isNull(inductionRecord.getAppId(), "D1-3新增就职记录-1-3-13新增就职记录-创建于联盟应用ID不能为空", false);
                string = mInductionRecordService.addInductionRecord(inductionRecord)/*vcase invoke 本地 method 方法调用;*/;


                string_1 = string;
            }
            if ((reqDto != null && reqDto.getIsDirector() != null && reqDto.getIsDirector().equals("TRUE") && reqDto != null && reqDto.getInductionUnitTypeCode() != null && reqDto.getInductionUnitTypeCode().equals("DEPT"))) {
                //if((D1-3新增就职记录.是否主管 等于 是 and D1-3新增就职记录.就职单位类型实例 等于 部门))  48615

                ImplementWriteBackDeptControllerDisposeComRespDto implementWriteBackDeptControllerDisposeComRespDto = null;
                if (userinfo != null) {
                    ImplementWriteBackDeptControllerDisposeComReqDto implementWriteBackDeptControllerDisposeComReqDto = new ImplementWriteBackDeptControllerDisposeComReqDto();
                    if (userinfo != null) {
                        implementWriteBackDeptControllerDisposeComReqDto.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:1132551_1_48616
                    }
                    if (reqDto != null) {
                        implementWriteBackDeptControllerDisposeComReqDto.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:1125341_1_48616
                        implementWriteBackDeptControllerDisposeComReqDto.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132552_1_48616
                        implementWriteBackDeptControllerDisposeComReqDto.setDeptId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1125343_1_48616
                        implementWriteBackDeptControllerDisposeComReqDto.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1125344_1_48616
                    }

                    /*D1执行回写部门主管(公共)[7424]   */
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getIdCardName(), "D1-3新增就职记录-D1执行回写部门主管(公共)-真实姓名不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getIsDirector(), "D1-3新增就职记录-D1执行回写部门主管(公共)-是否主管不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getDeptId(), "D1-3新增就职记录-D1执行回写部门主管(公共)-部门ID不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto.getOrganizationId(), "D1-3新增就职记录-D1执行回写部门主管(公共)-组织ID不能为空", false);
                    implementWriteBackDeptControllerDisposeComRespDto = implementWriteBackDeptControllerDisposeCom(implementWriteBackDeptControllerDisposeComReqDto)/*vcase invoke 同服务,同domain*/;


                }
            }
            if ((judgeAddInductionRecordUsableComRespDto != null && judgeAddInductionRecordUsableComRespDto.getBatchCurrentStatus() != null && judgeAddInductionRecordUsableComRespDto.getBatchCurrentStatus().equals("2"))) {
                //if(D1判断新增就职记录操作可用(公共).批次现状 等于 2)  12378

                AddBaseChangeColComRespDto addBaseChangeColComRespDto = null;
                if (string != null && userinfo != null && judgeAddInductionRecordUsableComRespDto != null) {
                    AddBaseChangeColComReqDto addBaseChangeColComReqDto = new AddBaseChangeColComReqDto();
                    addBaseChangeColComReqDto.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:154709_1_12379
                    addBaseChangeColComReqDto.setEntityName("inductionRecordId");//CUSTOM_CONVENTION//sourceId:162133_1_12379
                    addBaseChangeColComReqDto.setObjectPropertyCode("inductionRecordId");//CUSTOM_CONVENTION//sourceId:154711_1_12379
                    addBaseChangeColComReqDto.setObjectPropertyName("成员加入");//CUSTOM_CONVENTION//sourceId:181420_1_12379
                    addBaseChangeColComReqDto.setOriColumnContent("无");//CUSTOM_CONVENTION//sourceId:154715_1_12379
                    addBaseChangeColComReqDto.setSubjectTypeCode("ORG_LOG_NAV");//sourceId:154716_1_12379
                    addBaseChangeColComReqDto.setSubjectChangeType("ADD_INDUCTION_RECORD");//CUSTOM_CONVENTION//sourceId:154717_1_12379
                    addBaseChangeColComReqDto.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:154718_1_12379
                    addBaseChangeColComReqDto.setBatchStartTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:154721_1_12379
                    addBaseChangeColComReqDto.setBatchEndTime(CommonFunctionHelper.getFutureTime());//FUTURE_CURRENT_TIME//sourceId:154722_1_12379
                    addBaseChangeColComReqDto.setIsEditing("TRUE");//sourceId:154723_1_12379
                    addBaseChangeColComReqDto.setSubjectLifeCycle("EDITING");//sourceId:154724_1_12379
                    if (string != null) {
                        addBaseChangeColComReqDto.setEntityId(string);//SimpleFieldAssign//sourceId:154710_1_12379
                        addBaseChangeColComReqDto.setMetaDataColumnContent(string);//SimpleFieldAssign//sourceId:154713_1_12379
                    }
                    if (userinfo != null) {
                        addBaseChangeColComReqDto.setColumnContent(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:154714_1_12379
                    }
                    if (reqDto != null) {
                        addBaseChangeColComReqDto.setObjectId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:154719_1_12379
                        addBaseChangeColComReqDto.setSubjectContAffiliationParentCont(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:287389_1_12379
                    }
                    if (judgeAddInductionRecordUsableComRespDto != null) {
                        addBaseChangeColComReqDto.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:154720_1_12379
                    }

                    /*D1-1新增底层变更字段(公共)[3533]   */
                    Assert.isNull(addBaseChangeColComReqDto.getTableTypeCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-内容表类型编码不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getEntityName(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-内容表主键行为日志英文名称不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getEntityId(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-内容表主键ID不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getObjectPropertyCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更字段英文名不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getMetaDataColumnContent(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更字段原始值不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getObjectPropertyName(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更字段行为日志名称不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getColumnContent(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更后字段中文内容不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getOriColumnContent(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更前字段中文内容不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getSubjectTypeCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体类型编码不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getSubjectChangeType(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体变更日志类型不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getObjectTypeCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-归属对象类型编码不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getObjectId(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-归属对象内容ID不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getBatchId(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-批次ID不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getBatchStartTime(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-批次开始时间不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getBatchEndTime(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-批次结束时间不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getIsEditing(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-是否未来不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getSubjectLifeCycle(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体生命周期不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto.getSubjectContAffiliationParentCont(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体内容归属父对象不能为空", false);
                    addBaseChangeColComRespDto = changeColumnService.addBaseChangeColCom(addBaseChangeColComReqDto)/*vcase invoke isSameApp*/;


                }
//processBranchName:正常结束 ,processBranchId:14120

            }
        } else if ((judgeAddInductionRecordUsableComRespDto != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel() != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel().equals("STRICT"))) {
            //elseif(D1判断新增就职记录操作可用(公共).空间组织架构模式 等于 严谨型)  12431

            String string_2 = null;
            if (queryMidBaseCourseDetailComRespDto != null && implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null && judgeAddInductionRecordUsableComRespDto != null) {
                InductionRecord inductionRecord_1 = new InductionRecord();
                inductionRecord_1.setSubjectLifeCycle("EDITING");//sourceId:35372_1_12433
                inductionRecord_1.setIsEditing("TRUE");//sourceId:35373_1_12433
                inductionRecord_1.setIsUpdate("TRUE");//sourceId:35374_1_12433
                inductionRecord_1.setUpdateStatus("NEW");//sourceId:35375_1_12433
                inductionRecord_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:162564_1_12433
                inductionRecord_1.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:162565_1_12433
                if (reqDto != null) {
                    inductionRecord_1.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:22098_1_12433
                    inductionRecord_1.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:22099_1_12433
                    inductionRecord_1.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:22100_1_12433
                    inductionRecord_1.setFirstLetter(reqDto.getFirstLetter());//SimpleFieldAssign//sourceId:22948_1_12433
                    inductionRecord_1.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:22101_1_12433
                    inductionRecord_1.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:22102_1_12433
                    inductionRecord_1.setOrganizationName(reqDto.getOrganizationName());//SimpleFieldAssign//sourceId:22103_1_12433
                    inductionRecord_1.setDeptShortName(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:35361_1_12433
                    inductionRecord_1.setIsCustomPosition(reqDto.getIsCustomPosition());//SimpleFieldAssign//sourceId:22108_1_12433
                    inductionRecord_1.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:35370_1_12433
                    inductionRecord_1.setOrderNumber(reqDto.getOrderNumber());//SimpleFieldAssign//sourceId:51346_1_12433
                    inductionRecord_1.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:22115_1_12433
                    inductionRecord_1.setPositionIdNameId(reqDto.getPositionIdNameId());//SimpleFieldAssign//sourceId:22111_1_12433
                    inductionRecord_1.setPositionIdName(reqDto.getPositionIdName());//SimpleFieldAssign//sourceId:22112_1_12433
                    inductionRecord_1.setDirectorInductionRecordId(reqDto.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:22129_1_12433
                    inductionRecord_1.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:246849_1_12433
                    inductionRecord_1.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132555_1_12433
                    inductionRecord_1.setInductionStartTime(reqDto.getInductionStartTime());//SimpleFieldAssign//sourceId:35371_1_12433
                }
                if (queryMidBaseCourseDetailComRespDto != null) {
                    inductionRecord_1.setPrimaryDeptId(queryMidBaseCourseDetailComRespDto.getPrimaryDeptId());//SimpleFieldAssign//sourceId:1682631_1_12433
                }
                if (implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null) {
                    inductionRecord_1.setIsMainInduction(implementAnalyzeNewInductionRecordIsMajorPositionComRespDto.getIsMainInduction());//SimpleFieldAssign//sourceId:22107_1_12433
                }
                if (judgeAddInductionRecordUsableComRespDto != null) {
                    inductionRecord_1.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:22135_1_12433
                }

                /*1-3-13新增就职记录[162]   */
                Assert.isNull(inductionRecord_1.getInductionUnitTypeCode(), "D1-3新增就职记录-1-3-13新增就职记录-就职单位类型实例不能为空", false);
                Assert.isNull(inductionRecord_1.getEntityId(), "D1-3新增就职记录-1-3-13新增就职记录-就职单位对象实例ID不能为空", false);
                Assert.isNull(inductionRecord_1.getPrimaryDeptId(), "D1-3新增就职记录-1-3-13新增就职记录-冗余一级部门ID不能为空", false);
                Assert.isNull(inductionRecord_1.getOriginalRoleMemberId(), "D1-3新增就职记录-1-3-13新增就职记录-身份人员ID不能为空", false);
                Assert.isNull(inductionRecord_1.getFirstLetter(), "D1-3新增就职记录-1-3-13新增就职记录-备注首位字母不能为空", false);
                Assert.isNull(inductionRecord_1.getUserId(), "D1-3新增就职记录-1-3-13新增就职记录-个人账号ID不能为空", false);
                Assert.isNull(inductionRecord_1.getOrganizationId(), "D1-3新增就职记录-1-3-13新增就职记录-组织ID不能为空", false);
                Assert.isNull(inductionRecord_1.getOrganizationName(), "D1-3新增就职记录-1-3-13新增就职记录-冗余组织名称不能为空", false);
                Assert.isNull(inductionRecord_1.getIsMainInduction(), "D1-3新增就职记录-1-3-13新增就职记录-是否主岗不能为空", false);
                Assert.isNull(inductionRecord_1.getIsCustomPosition(), "D1-3新增就职记录-1-3-13新增就职记录-是否自定义职务不能为空", false);
                Assert.isNull(inductionRecord_1.getPositionType(), "D1-3新增就职记录-1-3-13新增就职记录-职务性质不能为空", false);
                Assert.isNull(inductionRecord_1.getOrderNumber(), "D1-3新增就职记录-1-3-13新增就职记录-排序不能为空", false);
                Assert.isNull(inductionRecord_1.getPositionIdName(), "D1-3新增就职记录-1-3-13新增就职记录-必选冗余职务名称不能为空", false);
                Assert.isNull(inductionRecord_1.getIsDirector(), "D1-3新增就职记录-1-3-13新增就职记录-是否主管不能为空", false);
                Assert.isNull(inductionRecord_1.getBatchId(), "D1-3新增就职记录-1-3-13新增就职记录-批次ID不能为空", false);
                Assert.isNull(inductionRecord_1.getSubjectLifeCycle(), "D1-3新增就职记录-1-3-13新增就职记录-主体生命周期不能为空", false);
                Assert.isNull(inductionRecord_1.getIsEditing(), "D1-3新增就职记录-1-3-13新增就职记录-是否未来不能为空", false);
                Assert.isNull(inductionRecord_1.getIsUpdate(), "D1-3新增就职记录-1-3-13新增就职记录-批次下是否更新不能为空", false);
                Assert.isNull(inductionRecord_1.getUpdateStatus(), "D1-3新增就职记录-1-3-13新增就职记录-批次下更新状态不能为空", false);
                Assert.isNull(inductionRecord_1.getSpaceId(), "D1-3新增就职记录-1-3-13新增就职记录-创建于空间ID不能为空", false);
                Assert.isNull(inductionRecord_1.getAppId(), "D1-3新增就职记录-1-3-13新增就职记录-创建于联盟应用ID不能为空", false);
                string_2 = mInductionRecordService.addInductionRecord(inductionRecord_1)/*vcase invoke 本地 method 方法调用;*/;


                string_1 = string_2;
            }
            if ((reqDto != null && reqDto.getIsDirector() != null && reqDto.getIsDirector().equals("TRUE") && reqDto != null && reqDto.getInductionUnitTypeCode() != null && reqDto.getInductionUnitTypeCode().equals("DEPT"))) {
                //if((D1-3新增就职记录.是否主管 等于 是 and D1-3新增就职记录.就职单位类型实例 等于 部门))  48617

                ImplementWriteBackDeptControllerDisposeComRespDto implementWriteBackDeptControllerDisposeComRespDto_1 = null;
                if (userinfo != null) {
                    ImplementWriteBackDeptControllerDisposeComReqDto implementWriteBackDeptControllerDisposeComReqDto_1 = new ImplementWriteBackDeptControllerDisposeComReqDto();
                    if (userinfo != null) {
                        implementWriteBackDeptControllerDisposeComReqDto_1.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:1132551_1_48618
                    }
                    if (reqDto != null) {
                        implementWriteBackDeptControllerDisposeComReqDto_1.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:1125341_1_48618
                        implementWriteBackDeptControllerDisposeComReqDto_1.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132552_1_48618
                        implementWriteBackDeptControllerDisposeComReqDto_1.setDeptId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1125343_1_48618
                        implementWriteBackDeptControllerDisposeComReqDto_1.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1125344_1_48618
                    }

                    /*D1执行回写部门主管(公共)[7424]   */
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_1.getIdCardName(), "D1-3新增就职记录-D1执行回写部门主管(公共)-真实姓名不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_1.getIsDirector(), "D1-3新增就职记录-D1执行回写部门主管(公共)-是否主管不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_1.getDeptId(), "D1-3新增就职记录-D1执行回写部门主管(公共)-部门ID不能为空", false);
                    Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_1.getOrganizationId(), "D1-3新增就职记录-D1执行回写部门主管(公共)-组织ID不能为空", false);
                    implementWriteBackDeptControllerDisposeComRespDto_1 = implementWriteBackDeptControllerDisposeCom(implementWriteBackDeptControllerDisposeComReqDto_1)/*vcase invoke 同服务,同domain*/;


                }
            }
            if ((judgeAddInductionRecordUsableComRespDto != null && judgeAddInductionRecordUsableComRespDto.getBatchCurrentStatus() != null && judgeAddInductionRecordUsableComRespDto.getBatchCurrentStatus().equals("2"))) {
                //if(D1判断新增就职记录操作可用(公共).批次现状 等于 2)  12439

                AddBaseChangeColComRespDto addBaseChangeColComRespDto_1 = null;
                if (string_2 != null && userinfo != null && judgeAddInductionRecordUsableComRespDto != null) {
                    AddBaseChangeColComReqDto addBaseChangeColComReqDto_1 = new AddBaseChangeColComReqDto();
                    addBaseChangeColComReqDto_1.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:154709_1_12440
                    addBaseChangeColComReqDto_1.setEntityName("inductionRecordId");//CUSTOM_CONVENTION//sourceId:162133_1_12440
                    addBaseChangeColComReqDto_1.setObjectPropertyCode("inductionRecordId");//CUSTOM_CONVENTION//sourceId:154711_1_12440
                    addBaseChangeColComReqDto_1.setObjectPropertyName("成员加入");//CUSTOM_CONVENTION//sourceId:181420_1_12440
                    addBaseChangeColComReqDto_1.setOriColumnContent("无");//CUSTOM_CONVENTION//sourceId:154715_1_12440
                    addBaseChangeColComReqDto_1.setSubjectTypeCode("ORG_LOG_NAV");//sourceId:154716_1_12440
                    addBaseChangeColComReqDto_1.setSubjectChangeType("ADD_INDUCTION_RECORD");//CUSTOM_CONVENTION//sourceId:154717_1_12440
                    addBaseChangeColComReqDto_1.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:154718_1_12440
                    addBaseChangeColComReqDto_1.setBatchStartTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:154721_1_12440
                    addBaseChangeColComReqDto_1.setBatchEndTime(CommonFunctionHelper.getFutureTime());//FUTURE_CURRENT_TIME//sourceId:154722_1_12440
                    addBaseChangeColComReqDto_1.setIsEditing("TRUE");//sourceId:154723_1_12440
                    addBaseChangeColComReqDto_1.setSubjectLifeCycle("EDITING");//sourceId:154724_1_12440
                    if (string_2 != null) {
                        addBaseChangeColComReqDto_1.setEntityId(string_2);//SimpleFieldAssign//sourceId:154710_1_12440
                        addBaseChangeColComReqDto_1.setMetaDataColumnContent(string_2);//SimpleFieldAssign//sourceId:154713_1_12440
                    }
                    if (userinfo != null) {
                        addBaseChangeColComReqDto_1.setColumnContent(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:154714_1_12440
                    }
                    if (reqDto != null) {
                        addBaseChangeColComReqDto_1.setObjectId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:154719_1_12440
                        addBaseChangeColComReqDto_1.setSubjectContAffiliationParentCont(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:287389_1_12440
                    }
                    if (judgeAddInductionRecordUsableComRespDto != null) {
                        addBaseChangeColComReqDto_1.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:154720_1_12440
                    }

                    /*D1-1新增底层变更字段(公共)[3533]   */
                    Assert.isNull(addBaseChangeColComReqDto_1.getTableTypeCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-内容表类型编码不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getEntityName(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-内容表主键行为日志英文名称不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getEntityId(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-内容表主键ID不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getObjectPropertyCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更字段英文名不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getMetaDataColumnContent(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更字段原始值不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getObjectPropertyName(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更字段行为日志名称不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getColumnContent(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更后字段中文内容不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getOriColumnContent(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更前字段中文内容不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getSubjectTypeCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体类型编码不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getSubjectChangeType(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体变更日志类型不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getObjectTypeCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-归属对象类型编码不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getObjectId(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-归属对象内容ID不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getBatchId(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-批次ID不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getBatchStartTime(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-批次开始时间不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getBatchEndTime(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-批次结束时间不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getIsEditing(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-是否未来不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getSubjectLifeCycle(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体生命周期不能为空", false);
                    Assert.isNull(addBaseChangeColComReqDto_1.getSubjectContAffiliationParentCont(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体内容归属父对象不能为空", false);
                    addBaseChangeColComRespDto_1 = changeColumnService.addBaseChangeColCom(addBaseChangeColComReqDto_1)/*vcase invoke isSameApp*/;


                }
//processBranchName:正常结束 ,processBranchId:14121

            }
        } else if ((judgeAddInductionRecordUsableComRespDto != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel() != null && judgeAddInductionRecordUsableComRespDto.getOrgStructureModel().equals("PLAN_STAFFING"))) {
            //elseif(D1判断新增就职记录操作可用(公共).空间组织架构模式 等于 计划编制型)  12432

            Staffing staffing = null;
            QueryStaffingDetailReq queryStaffingDetailReq = new QueryStaffingDetailReq();
            queryStaffingDetailReq.setInductionState("FALSE");//sourceId:22836_1_12442
            queryStaffingDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:51308_1_12442
            if (reqDto != null) {
                queryStaffingDetailReq.setIsPartTimeStaffing(reqDto.getIsPartTimeStaffing());//SimpleFieldAssign//sourceId:37815_1_12442
                queryStaffingDetailReq.setDeptId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:22838_1_12442
                queryStaffingDetailReq.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:51318_1_12442
                queryStaffingDetailReq.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:22839_1_12442
            }

    /*查询编制详情（查部门或组织下空编制）[191] 通过前端入参职务ID，查询是否有未锁定的空编制；有空编制的情况，出参编制ID，直接新增就职记录，跳过新增编制；
无空编制 ，继续查询组织下是否有对应职务ID的空编制ID。  */
            Assert.isNull(queryStaffingDetailReq.getInductionState(), "D1-3新增就职记录-查询编制详情（查部门或组织下空编制）-编制是否在职不能为空", false);
            Assert.isNull(queryStaffingDetailReq.getPositionId(), "D1-3新增就职记录-查询编制详情（查部门或组织下空编制）-职务ID不能为空", false);
            Assert.isNull(queryStaffingDetailReq.getSubjectLifeCycle(), "D1-3新增就职记录-查询编制详情（查部门或组织下空编制）-主体生命周期不能为空", false);
            staffing = mStaffingService.queryStaffingDetail(queryStaffingDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((staffing != null)) {
                //if(查询编制详情（查部门或组织下空编制）.出参 值不等于空 )  12443

                String string_3 = null;
                if (queryMidBaseCourseDetailComRespDto != null && implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null && staffing != null && judgeAddInductionRecordUsableComRespDto != null) {
                    InductionRecord inductionRecord_2 = new InductionRecord();
                    inductionRecord_2.setSubjectLifeCycle("EDITING");//sourceId:35372_1_12444
                    inductionRecord_2.setIsEditing("TRUE");//sourceId:35373_1_12444
                    inductionRecord_2.setIsUpdate("TRUE");//sourceId:35374_1_12444
                    inductionRecord_2.setUpdateStatus("NEW");//sourceId:35375_1_12444
                    inductionRecord_2.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:162564_1_12444
                    inductionRecord_2.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:162565_1_12444
                    if (reqDto != null) {
                        inductionRecord_2.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:22098_1_12444
                        inductionRecord_2.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:22099_1_12444
                        inductionRecord_2.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:22100_1_12444
                        inductionRecord_2.setFirstLetter(reqDto.getFirstLetter());//SimpleFieldAssign//sourceId:22948_1_12444
                        inductionRecord_2.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:22101_1_12444
                        inductionRecord_2.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:22102_1_12444
                        inductionRecord_2.setOrganizationName(reqDto.getOrganizationName());//SimpleFieldAssign//sourceId:22103_1_12444
                        inductionRecord_2.setDeptShortName(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:35361_1_12444
                        inductionRecord_2.setIsCustomPosition(reqDto.getIsCustomPosition());//SimpleFieldAssign//sourceId:22108_1_12444
                        inductionRecord_2.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:35370_1_12444
                        inductionRecord_2.setOrderNumber(reqDto.getOrderNumber());//SimpleFieldAssign//sourceId:51346_1_12444
                        inductionRecord_2.setPositionId(reqDto.getPositionId());//SimpleFieldAssign//sourceId:22115_1_12444
                        inductionRecord_2.setPositionIdNameId(reqDto.getPositionIdNameId());//SimpleFieldAssign//sourceId:22111_1_12444
                        inductionRecord_2.setPositionIdName(reqDto.getPositionIdName());//SimpleFieldAssign//sourceId:22112_1_12444
                        inductionRecord_2.setDirectorInductionRecordId(reqDto.getDirectorInductionRecordId());//SimpleFieldAssign//sourceId:22129_1_12444
                        inductionRecord_2.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:246849_1_12444
                        inductionRecord_2.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132555_1_12444
                        inductionRecord_2.setInductionStartTime(reqDto.getInductionStartTime());//SimpleFieldAssign//sourceId:35371_1_12444
                    }
                    if (queryMidBaseCourseDetailComRespDto != null) {
                        inductionRecord_2.setPrimaryDeptId(queryMidBaseCourseDetailComRespDto.getPrimaryDeptId());//SimpleFieldAssign//sourceId:1682631_1_12444
                    }
                    if (implementAnalyzeNewInductionRecordIsMajorPositionComRespDto != null) {
                        inductionRecord_2.setIsMainInduction(implementAnalyzeNewInductionRecordIsMajorPositionComRespDto.getIsMainInduction());//SimpleFieldAssign//sourceId:22107_1_12444
                    }
                    if (staffing != null) {
                        inductionRecord_2.setStaffingId(staffing.getStaffingId());//SimpleFieldAssign//sourceId:51347_1_12444
                    }
                    if (judgeAddInductionRecordUsableComRespDto != null) {
                        inductionRecord_2.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:22135_1_12444
                    }

                    /*1-3-13新增就职记录[162]   */
                    Assert.isNull(inductionRecord_2.getInductionUnitTypeCode(), "D1-3新增就职记录-1-3-13新增就职记录-就职单位类型实例不能为空", false);
                    Assert.isNull(inductionRecord_2.getEntityId(), "D1-3新增就职记录-1-3-13新增就职记录-就职单位对象实例ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getPrimaryDeptId(), "D1-3新增就职记录-1-3-13新增就职记录-冗余一级部门ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getOriginalRoleMemberId(), "D1-3新增就职记录-1-3-13新增就职记录-身份人员ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getFirstLetter(), "D1-3新增就职记录-1-3-13新增就职记录-备注首位字母不能为空", false);
                    Assert.isNull(inductionRecord_2.getUserId(), "D1-3新增就职记录-1-3-13新增就职记录-个人账号ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getOrganizationId(), "D1-3新增就职记录-1-3-13新增就职记录-组织ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getOrganizationName(), "D1-3新增就职记录-1-3-13新增就职记录-冗余组织名称不能为空", false);
                    Assert.isNull(inductionRecord_2.getIsMainInduction(), "D1-3新增就职记录-1-3-13新增就职记录-是否主岗不能为空", false);
                    Assert.isNull(inductionRecord_2.getIsCustomPosition(), "D1-3新增就职记录-1-3-13新增就职记录-是否自定义职务不能为空", false);
                    Assert.isNull(inductionRecord_2.getPositionType(), "D1-3新增就职记录-1-3-13新增就职记录-职务性质不能为空", false);
                    Assert.isNull(inductionRecord_2.getOrderNumber(), "D1-3新增就职记录-1-3-13新增就职记录-排序不能为空", false);
                    Assert.isNull(inductionRecord_2.getPositionIdName(), "D1-3新增就职记录-1-3-13新增就职记录-必选冗余职务名称不能为空", false);
                    Assert.isNull(inductionRecord_2.getIsDirector(), "D1-3新增就职记录-1-3-13新增就职记录-是否主管不能为空", false);
                    Assert.isNull(inductionRecord_2.getBatchId(), "D1-3新增就职记录-1-3-13新增就职记录-批次ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getSubjectLifeCycle(), "D1-3新增就职记录-1-3-13新增就职记录-主体生命周期不能为空", false);
                    Assert.isNull(inductionRecord_2.getIsEditing(), "D1-3新增就职记录-1-3-13新增就职记录-是否未来不能为空", false);
                    Assert.isNull(inductionRecord_2.getIsUpdate(), "D1-3新增就职记录-1-3-13新增就职记录-批次下是否更新不能为空", false);
                    Assert.isNull(inductionRecord_2.getUpdateStatus(), "D1-3新增就职记录-1-3-13新增就职记录-批次下更新状态不能为空", false);
                    Assert.isNull(inductionRecord_2.getSpaceId(), "D1-3新增就职记录-1-3-13新增就职记录-创建于空间ID不能为空", false);
                    Assert.isNull(inductionRecord_2.getAppId(), "D1-3新增就职记录-1-3-13新增就职记录-创建于联盟应用ID不能为空", false);
                    string_3 = mInductionRecordService.addInductionRecord(inductionRecord_2)/*vcase invoke 本地 method 方法调用;*/;


                    string_1 = string_3;
                }
                boolean bOOLEAN;
                if (staffing != null) {
                    Staffing staffing_2 = new Staffing();
                    staffing_2.setInductionState("TRUE");//sourceId:37534_1_12445
                    staffing_2.setTempLock("TRUE");//sourceId:37563_1_12445
                    if (staffing != null) {
                        staffing_2.setStaffingId(staffing.getStaffingId());//SimpleFieldAssign//sourceId:37533_1_12445
                    }
                    if (reqDto != null) {
                        staffing_2.setIsUsedbyPartTime(reqDto.getIsPartTimeStaffing());//SimpleFieldAssign//sourceId:51591_1_12445
                    }

                    /*1-3-15修改编制（锁定编制等）[186]   */
                    Assert.isNull(staffing_2.getStaffingId(), "D1-3新增就职记录-1-3-15修改编制（锁定编制等）-编制ID不能为空", false);
                    Assert.isNull(staffing_2.getInductionState(), "D1-3新增就职记录-1-3-15修改编制（锁定编制等）-编制是否在职不能为空", false);
                    Assert.isNull(staffing_2.getTempLock(), "D1-3新增就职记录-1-3-15修改编制（锁定编制等）-临时锁定状态不能为空", false);
                    Assert.isNull(staffing_2.getIsUsedbyPartTime(), "D1-3新增就职记录-1-3-15修改编制（锁定编制等）-是否兼职占用不能为空", false);
                    bOOLEAN = mStaffingService.updateStaffing(staffing_2)/*vcase invoke 本地 method 方法调用;*/;


                }
                if ((reqDto != null && reqDto.getIsDirector() != null && reqDto.getIsDirector().equals("TRUE") && reqDto != null && reqDto.getInductionUnitTypeCode() != null && reqDto.getInductionUnitTypeCode().equals("DEPT"))) {
                    //if((D1-3新增就职记录.是否主管 等于 是 and D1-3新增就职记录.就职单位类型实例 等于 部门))  48623

                    ImplementWriteBackDeptControllerDisposeComRespDto implementWriteBackDeptControllerDisposeComRespDto_2 = null;
                    if (userinfo != null) {
                        ImplementWriteBackDeptControllerDisposeComReqDto implementWriteBackDeptControllerDisposeComReqDto_2 = new ImplementWriteBackDeptControllerDisposeComReqDto();
                        if (userinfo != null) {
                            implementWriteBackDeptControllerDisposeComReqDto_2.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:1132551_1_48624
                        }
                        if (reqDto != null) {
                            implementWriteBackDeptControllerDisposeComReqDto_2.setIsDirector(reqDto.getIsDirector());//SimpleFieldAssign//sourceId:1125341_1_48624
                            implementWriteBackDeptControllerDisposeComReqDto_2.setIsXzDirector(reqDto.getIsXzDirector());//SimpleFieldAssign//sourceId:1132552_1_48624
                            implementWriteBackDeptControllerDisposeComReqDto_2.setDeptId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1125343_1_48624
                            implementWriteBackDeptControllerDisposeComReqDto_2.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1125344_1_48624
                        }

                        /*D1执行回写部门主管(公共)[7424]   */
                        Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_2.getIdCardName(), "D1-3新增就职记录-D1执行回写部门主管(公共)-真实姓名不能为空", false);
                        Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_2.getIsDirector(), "D1-3新增就职记录-D1执行回写部门主管(公共)-是否主管不能为空", false);
                        Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_2.getDeptId(), "D1-3新增就职记录-D1执行回写部门主管(公共)-部门ID不能为空", false);
                        Assert.isNull(implementWriteBackDeptControllerDisposeComReqDto_2.getOrganizationId(), "D1-3新增就职记录-D1执行回写部门主管(公共)-组织ID不能为空", false);
                        implementWriteBackDeptControllerDisposeComRespDto_2 = implementWriteBackDeptControllerDisposeCom(implementWriteBackDeptControllerDisposeComReqDto_2)/*vcase invoke 同服务,同domain*/;


                    }
                }
                if ((judgeAddInductionRecordUsableComRespDto != null && judgeAddInductionRecordUsableComRespDto.getBatchCurrentStatus() != null && judgeAddInductionRecordUsableComRespDto.getBatchCurrentStatus().equals("2"))) {
                    //if(D1判断新增就职记录操作可用(公共).批次现状 等于 2)  12446

                    AddBaseChangeColComRespDto addBaseChangeColComRespDto_2 = null;
                    if (string_3 != null && userinfo != null && judgeAddInductionRecordUsableComRespDto != null) {
                        AddBaseChangeColComReqDto addBaseChangeColComReqDto_2 = new AddBaseChangeColComReqDto();
                        addBaseChangeColComReqDto_2.setTableTypeCode("OMS_ORG_INDUCTION_RECORD");//sourceId:154709_1_12447
                        addBaseChangeColComReqDto_2.setEntityName("inductionRecordId");//CUSTOM_CONVENTION//sourceId:162133_1_12447
                        addBaseChangeColComReqDto_2.setObjectPropertyCode("inductionRecordId");//CUSTOM_CONVENTION//sourceId:154711_1_12447
                        addBaseChangeColComReqDto_2.setObjectPropertyName("成员加入");//CUSTOM_CONVENTION//sourceId:181420_1_12447
                        addBaseChangeColComReqDto_2.setOriColumnContent("无");//CUSTOM_CONVENTION//sourceId:154715_1_12447
                        addBaseChangeColComReqDto_2.setSubjectTypeCode("ORG_LOG_NAV");//sourceId:154716_1_12447
                        addBaseChangeColComReqDto_2.setSubjectChangeType("ADD_INDUCTION_RECORD");//CUSTOM_CONVENTION//sourceId:154717_1_12447
                        addBaseChangeColComReqDto_2.setObjectTypeCode("OMS_ORG_ORGANIZATION");//sourceId:154718_1_12447
                        addBaseChangeColComReqDto_2.setBatchStartTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:154721_1_12447
                        addBaseChangeColComReqDto_2.setBatchEndTime(CommonFunctionHelper.getFutureTime());//FUTURE_CURRENT_TIME//sourceId:154722_1_12447
                        addBaseChangeColComReqDto_2.setIsEditing("TRUE");//sourceId:154723_1_12447
                        addBaseChangeColComReqDto_2.setSubjectLifeCycle("EDITING");//sourceId:154724_1_12447
                        if (string_3 != null) {
                            addBaseChangeColComReqDto_2.setEntityId(string_3);//SimpleFieldAssign//sourceId:154710_1_12447
                            addBaseChangeColComReqDto_2.setMetaDataColumnContent(string_3);//SimpleFieldAssign//sourceId:154713_1_12447
                        }
                        if (userinfo != null) {
                            addBaseChangeColComReqDto_2.setColumnContent(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:154714_1_12447
                        }
                        if (reqDto != null) {
                            addBaseChangeColComReqDto_2.setObjectId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:154719_1_12447
                            addBaseChangeColComReqDto_2.setSubjectContAffiliationParentCont(reqDto.getDeptShortName());//SimpleFieldAssign//sourceId:287389_1_12447
                        }
                        if (judgeAddInductionRecordUsableComRespDto != null) {
                            addBaseChangeColComReqDto_2.setBatchId(judgeAddInductionRecordUsableComRespDto.getBatchId());//SimpleFieldAssign//sourceId:154720_1_12447
                        }

                        /*D1-1新增底层变更字段(公共)[3533]   */
                        Assert.isNull(addBaseChangeColComReqDto_2.getTableTypeCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-内容表类型编码不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getEntityName(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-内容表主键行为日志英文名称不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getEntityId(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-内容表主键ID不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getObjectPropertyCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更字段英文名不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getMetaDataColumnContent(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更字段原始值不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getObjectPropertyName(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更字段行为日志名称不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getColumnContent(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更后字段中文内容不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getOriColumnContent(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-变更前字段中文内容不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getSubjectTypeCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体类型编码不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getSubjectChangeType(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体变更日志类型不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getObjectTypeCode(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-归属对象类型编码不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getObjectId(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-归属对象内容ID不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getBatchId(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-批次ID不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getBatchStartTime(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-批次开始时间不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getBatchEndTime(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-批次结束时间不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getIsEditing(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-是否未来不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getSubjectLifeCycle(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体生命周期不能为空", false);
                        Assert.isNull(addBaseChangeColComReqDto_2.getSubjectContAffiliationParentCont(), "D1-3新增就职记录-D1-1新增底层变更字段(公共)-主体内容归属父对象不能为空", false);
                        addBaseChangeColComRespDto_2 = changeColumnService.addBaseChangeColCom(addBaseChangeColComReqDto_2)/*vcase invoke isSameApp*/;


                    }
//processBranchName:正常结束 ,processBranchId:14122

                }
            }
        }
        AddInductionRecordRespDto retData = new AddInductionRecordRespDto();
        if (string_1 != null) {
            retData.setInductionRecordId(string_1);//SimpleFieldAssign//sourceId:29736_1
        }


        return retData;
    }

    /**
     * D1-2执行主岗唯一处理(公共)[4018]
     * gen by moon at 8/24/2023, 1:19:13 PM
     */
    @Trace(operationName = "D1-2执行主岗唯一处理(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementMajorPositionOnlyHandleComRespDto implementMajorPositionOnlyHandleCom(ImplementMajorPositionOnlyHandleComReqDto reqDto) {


        if ((reqDto != null && reqDto.getIsMainInduction() != null && reqDto.getIsMainInduction().equals("TRUE"))) {
            //if(D1-2执行主岗唯一处理(公共).是否主岗 等于 是)  13323

            InductionRecord inductionRecord = null;
            QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
            queryinductionRecordDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:214162_1_13324
            if (reqDto != null) {
                queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:214161_1_13324
            }

            /*1-3-13查询就职记录里面身份人员ID[165]   */
            Assert.isNull(queryinductionRecordDetailReq.getSpaceId(), "D1-2执行主岗唯一处理(公共)-1-3-13查询就职记录里面身份人员ID-创建于空间ID不能为空", false);
            inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;
            Assert.isTrue(inductionRecord == null || inductionRecord.getOriginalRoleMemberId() == null, "找不到数据，系统异常", false);


            List<InductionRecord> listInductionRecord = new ArrayList<>();
            if (inductionRecord != null) {
                QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
                queryInductionRecordListReq.setIsMainInduction("TRUE");//sourceId:214201_1_13325
                queryInductionRecordListReq.setIsArchive("FALSE");//sourceId:216647_1_13325
                if (inductionRecord != null) {
                    queryInductionRecordListReq.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:214200_1_13325
                    queryInductionRecordListReq.setOrganizationId(inductionRecord.getOrganizationId());//SimpleFieldAssign//sourceId:214199_1_13325
                }

                /*1-3-13查询身份人员的就职记录列表[166]   */
                Assert.isNull(queryInductionRecordListReq.getOriginalRoleMemberId(), "D1-2执行主岗唯一处理(公共)-1-3-13查询身份人员的就职记录列表-身份人员ID不能为空", false);
                Assert.isNull(queryInductionRecordListReq.getOrganizationId(), "D1-2执行主岗唯一处理(公共)-1-3-13查询身份人员的就职记录列表-组织ID不能为空", false);
                Assert.isNull(queryInductionRecordListReq.getIsMainInduction(), "D1-2执行主岗唯一处理(公共)-1-3-13查询身份人员的就职记录列表-是否主岗不能为空", false);
                Assert.isNull(queryInductionRecordListReq.getIsArchive(), "D1-2执行主岗唯一处理(公共)-1-3-13查询身份人员的就职记录列表-是否存档不能为空", false);
                listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


            }
            boolean bOOLEAN;
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
                List<InductionRecord> listInductionRecord_2 = new ArrayList<>();
                if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                    listInductionRecord_2 = //objList-to-objLists
                            listInductionRecord.stream().map(item -> {
                                InductionRecord elm = new InductionRecord();
                                elm.setInductionRecordId(item.getInductionRecordId());//SimpleFieldAssign//sourceId:81241_2_13326
                                elm.setIsMainInduction("FALSE");//sourceId:81244_2_13326
                                return elm;
                            }).collect(Collectors.toList());//objList-to-objLists//sourceId:214203_1_13326
                }

                /*1-3-13批量修改就职记录（非主岗）[1647]   */

                bOOLEAN = mInductionRecordService.batchUpdateInductionRecord(listInductionRecord_2)/*vcase invoke 本地 method 方法调用;*/;


            }
            boolean bOOLEAN_1;
            InductionRecord inductionRecord_2 = new InductionRecord();
            if (reqDto != null) {
                inductionRecord_2.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:214377_1_13335
                inductionRecord_2.setIsMainInduction(reqDto.getIsMainInduction());//SimpleFieldAssign//sourceId:214378_1_13335
            }

            /*1-3-13修改就职记录（回写主岗）[163]   */
            Assert.isNull(inductionRecord_2.getInductionRecordId(), "D1-2执行主岗唯一处理(公共)-1-3-13修改就职记录（回写主岗）-就职记录ID不能为空", false);
            Assert.isNull(inductionRecord_2.getIsMainInduction(), "D1-2执行主岗唯一处理(公共)-1-3-13修改就职记录（回写主岗）-是否主岗不能为空", false);
            bOOLEAN_1 = mInductionRecordService.updateInductionRecord(inductionRecord_2)/*vcase invoke 本地 method 方法调用;*/;


//processBranchName:正常结束 ,processBranchId:13328

        } else {
            //else  13329

//processBranchName:正常结束 ,processBranchId:13331

        }
        ImplementMajorPositionOnlyHandleComRespDto retData = new ImplementMajorPositionOnlyHandleComRespDto();


        return retData;
    }

    /**
     * D1-3查询就职记录列表(公共)[3933]
     * gen by moon at 10/12/2023, 4:12:47 PM
     */
    @Trace(operationName = "D1-3查询就职记录列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryInductionRecordListComRespDto queryInductionRecordListCom(QueryInductionRecordListComReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_1 = new ArrayList<>();
//步骤0: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        if (reqDto != null) {
            queryInductionRecordListReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:200298_1
            queryInductionRecordListReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:200305_1
            queryInductionRecordListReq.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:200307_1
            queryInductionRecordListReq.setIsTransaction(reqDto.getIsTransaction());//SimpleFieldAssign//sourceId:200328_1
            queryInductionRecordListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:200840_1
            queryInductionRecordListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:200323_1
            queryInductionRecordListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:200301_1
        }

        /*1-3-13查询就职记录列表[166]   */
        Assert.isNull(queryInductionRecordListReq.getInductionUnitTypeCode(), "D1-3查询就职记录列表(公共)-1-3-13查询就职记录列表-就职单位类型实例不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getEntityId(), "D1-3查询就职记录列表(公共)-1-3-13查询就职记录列表-就职单位对象实例ID不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getIsTransaction(), "D1-3查询就职记录列表(公共)-1-3-13查询就职记录列表-是否异动不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getSubjectLifeCycle(), "D1-3查询就职记录列表(公共)-1-3-13查询就职记录列表-主体生命周期不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getSpaceId(), "D1-3查询就职记录列表(公共)-1-3-13查询就职记录列表-创建于空间ID不能为空", false);
        listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

//步骤1: 1-2-10批量查询身份人员资料列表 - batchQueryBeginMembInfoList
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq = new BatchQueryBeginMembInfoListReq();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryBeginMembInfoListReq.setBeginMembInfoList(listInductionRecord.stream().map(item -> item.getOriginalRoleMemberId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:200330_1
            }

            /*1-2-10批量查询身份人员资料列表[1014]   */

            listOriginalRoleMemberInfo = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo;
        }

//步骤2: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryUserinfoListReq.setUserList(listInductionRecord.stream().map(item -> item.getUserId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:200333_1
            }

            /*1-2-02批量查询个人资料列表[52]   */

            listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listUserinfo_1 = listUserinfo;
        }

        QueryInductionRecordListComRespDto retData = new QueryInductionRecordListComRespDto();
        //数据集融合  MoreListToOneSource
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1) && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            for (InductionRecord inductionRecord : listInductionRecord_1) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:79777_2
                retElm.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:79779_2
                retElm.setEntityId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:114815_2
                retElm.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:79780_2
                retElm.setOrganizationId(inductionRecord.getOrganizationId());//SimpleFieldAssign//sourceId:79781_2
                retElm.setOrganizationName(inductionRecord.getOrganizationName());//SimpleFieldAssign//sourceId:79782_2
                retElm.setDeptShortName(inductionRecord.getDeptShortName());//SimpleFieldAssign//sourceId:79783_2
                retElm.setFirstLetter(inductionRecord.getFirstLetter());//SimpleFieldAssign//sourceId:79784_2
                retElm.setPositionIdName(inductionRecord.getPositionIdName());//SimpleFieldAssign//sourceId:79785_2
                retElm.setIsDirector(inductionRecord.getIsDirector());//SimpleFieldAssign//sourceId:243093_2
                retData.getOrgInductionRecordList().add(retElm);
                if (listOriginalRoleMemberInfo_1 != null && !CollectionUtil.isEmpty(listOriginalRoleMemberInfo_1)) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(inductionRecord.getOriginalRoleMemberId())) {
                            retElm.setRoleMemberCode(originalRoleMemberInfo.getRoleMemberCode());//SimpleFieldAssign//sourceId:79789_2
                            retElm.setPositionIdName(originalRoleMemberInfo.getPositionIdName());//SimpleFieldAssign//sourceId:79790_2
                            retElm.setIsPtJob(originalRoleMemberInfo.getIsPtJob());//SimpleFieldAssign//sourceId:79791_2
                        }
                    }
                }

                if (listUserinfo_1 != null && !CollectionUtil.isEmpty(listUserinfo_1)) {
                    for (Userinfo userinfo : listUserinfo_1) {
                        if (userinfo.getUserId().equals(inductionRecord.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:79788_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:79786_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:79787_2
                        }
                    }
                }

            }
        }//sourceId:200347_1


        return retData;
    }

    /**
     * D1-3批量查询直属就职记录[3106]
     * gen by moon at 5/23/2024, 11:28:21 PM
     */
    @Trace(operationName = "D1-3批量查询直属就职记录")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryDirectInductionRecordRespDto batchQueryDirectInductionRecord(BatchQueryDirectInductionRecordReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_1 = new ArrayList<>();
//步骤0: 1-3-13批量查询直属就职记录 - batchQueryDirectInductionRecord
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        BatchQueryDirectInductionRecordReq batchQueryDirectInductionRecordReq = new BatchQueryDirectInductionRecordReq();
        if (reqDto != null) {
            batchQueryDirectInductionRecordReq.setOrgInductionRecordList(reqDto.getOrgInductionRecordList());//list-field-assign//sourceId:106876_1
            batchQueryDirectInductionRecordReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:106877_1
            batchQueryDirectInductionRecordReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:106878_1
            batchQueryDirectInductionRecordReq.setIsTransaction(reqDto.getIsTransaction());//SimpleFieldAssign//sourceId:106879_1
            batchQueryDirectInductionRecordReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:106880_1
        }

        /*1-3-13批量查询直属就职记录[3107]   */
        Assert.isNull(batchQueryDirectInductionRecordReq.getInductionUnitTypeCode(), "D1-3批量查询直属就职记录-1-3-13批量查询直属就职记录-就职单位类型实例不能为空", false);
        Assert.isNull(batchQueryDirectInductionRecordReq.getEntityId(), "D1-3批量查询直属就职记录-1-3-13批量查询直属就职记录-就职单位对象实例ID不能为空", false);
        listInductionRecord = mInductionRecordService.batchQueryDirectInductionRecord(batchQueryDirectInductionRecordReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

//步骤1: 1-2-10批量查询身份人员资料列表 - batchQueryBeginMembInfoList
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq = new BatchQueryBeginMembInfoListReq();
            batchQueryBeginMembInfoListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:106884_1
            batchQueryBeginMembInfoListReq.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:106885_1
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryBeginMembInfoListReq.setBeginMembInfoList(listInductionRecord.stream().map(item -> item.getOriginalRoleMemberId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:106883_1
            }

            /*1-2-10批量查询身份人员资料列表[1014]   */
            Assert.isNull(batchQueryBeginMembInfoListReq.getSpaceId(), "D1-3批量查询直属就职记录-1-2-10批量查询身份人员资料列表-创建于空间ID不能为空", false);
            Assert.isNull(batchQueryBeginMembInfoListReq.getAppId(), "D1-3批量查询直属就职记录-1-2-10批量查询身份人员资料列表-创建于联盟应用ID不能为空", false);
            listOriginalRoleMemberInfo = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo;
        }

//步骤2: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryUserinfoListReq.setUserList(listInductionRecord.stream().map(item -> item.getUserId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:106886_1
            }

            /*1-2-02批量查询个人资料列表[52]   */

            listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listUserinfo_1 = listUserinfo;
        }

        BatchQueryDirectInductionRecordRespDto retData = new BatchQueryDirectInductionRecordRespDto();
        //数据集融合  MoreListToOneSource
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1) && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            for (InductionRecord inductionRecord : listInductionRecord_1) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:58318_2
                retElm.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:58319_2
                retElm.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:58321_2
                retElm.setFirstLetter(inductionRecord.getFirstLetter());//SimpleFieldAssign//sourceId:58324_2
                retData.getOrgInductionRecordList().add(retElm);
                if (listOriginalRoleMemberInfo_1 != null && !CollectionUtil.isEmpty(listOriginalRoleMemberInfo_1)) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(inductionRecord.getOriginalRoleMemberId())) {
                            retElm.setRoleMemberCode(originalRoleMemberInfo.getRoleMemberCode());//SimpleFieldAssign//sourceId:58320_2
                            retElm.setIsPtJob(originalRoleMemberInfo.getIsPtJob());//SimpleFieldAssign//sourceId:58323_2
                            retElm.setPositionIdName(originalRoleMemberInfo.getPositionIdName());//SimpleFieldAssign//sourceId:58325_2
                        }
                    }
                }

                if (listUserinfo_1 != null && !CollectionUtil.isEmpty(listUserinfo_1)) {
                    for (Userinfo userinfo : listUserinfo_1) {
                        if (userinfo.getUserId().equals(inductionRecord.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:58327_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:58322_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:58326_2
                        }
                    }
                }

            }
        }//sourceId:106896_1


        return retData;
    }

    /**
     * D1-3查询部门下直属就职记录列表[4839]
     * gen by moon at 10/12/2023, 4:12:50 PM
     */
    @Trace(operationName = "D1-3查询部门下直属就职记录列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryDeptDirectlyInductionRecordListRespDto queryDeptDirectlyInductionRecordList(QueryDeptDirectlyInductionRecordListReqDto reqDto) {


        QueryInductionRecordListComRespDto queryInductionRecordListComRespDto_1 = null;
        QueryDeputyInductionRecordListComRespDto queryDeputyInductionRecordListComRespDto_1 = null;
        if ((reqDto != null && reqDto.getIsDeputy() == null || reqDto != null && reqDto.getIsDeputy() != null && reqDto.getIsDeputy().equals("FALSE"))) {
            //if((D1-3查询部门下直属就职记录列表.是否正副职 值等于空  or D1-3查询部门下直属就职记录列表.是否正副职 等于 否))  19512

            QueryInductionRecordListComRespDto queryInductionRecordListComRespDto = null;
            QueryInductionRecordListComReqDto queryInductionRecordListComReqDto = new QueryInductionRecordListComReqDto();
            queryInductionRecordListComReqDto.setInductionUnitTypeCode("DEPT");//sourceId:377637_1_21807
            queryInductionRecordListComReqDto.setIsTransaction("FALSE");//sourceId:377640_1_21807
            queryInductionRecordListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:377643_1_21807
            queryInductionRecordListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:377642_1_21807
            if (reqDto != null) {
                queryInductionRecordListComReqDto.setEntityId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:377638_1_21807
            }

            /*D1-3查询就职记录列表(公共)[3933]   */
            Assert.isNull(queryInductionRecordListComReqDto.getEntityId(), "D1-3查询部门下直属就职记录列表-D1-3查询就职记录列表(公共)-就职单位对象实例ID不能为空", false);
            Assert.isNull(queryInductionRecordListComReqDto.getInductionUnitTypeCode(), "D1-3查询部门下直属就职记录列表-D1-3查询就职记录列表(公共)-就职单位类型实例不能为空", false);
            Assert.isNull(queryInductionRecordListComReqDto.getIsTransaction(), "D1-3查询部门下直属就职记录列表-D1-3查询就职记录列表(公共)-是否异动不能为空", false);
            Assert.isNull(queryInductionRecordListComReqDto.getSubjectLifeCycle(), "D1-3查询部门下直属就职记录列表-D1-3查询就职记录列表(公共)-主体生命周期不能为空", false);
            Assert.isNull(queryInductionRecordListComReqDto.getSpaceId(), "D1-3查询部门下直属就职记录列表-D1-3查询就职记录列表(公共)-创建于空间ID不能为空", false);
            queryInductionRecordListComRespDto = queryInductionRecordListCom(queryInductionRecordListComReqDto)/*vcase invoke 同服务,同domain*/;


            queryInductionRecordListComRespDto_1 = queryInductionRecordListComRespDto;
        } else if ((reqDto != null && reqDto.getIsDeputy() != null && reqDto != null && reqDto.getIsDeputy() != null && reqDto.getIsDeputy().equals("TRUE"))) {
            //elseif((D1-3查询部门下直属就职记录列表.是否正副职 值不等于空  and D1-3查询部门下直属就职记录列表.是否正副职 等于 是))  21808

            QueryDeputyInductionRecordListComRespDto queryDeputyInductionRecordListComRespDto = null;
            QueryDeputyInductionRecordListComReqDto queryDeputyInductionRecordListComReqDto = new QueryDeputyInductionRecordListComReqDto();
            queryDeputyInductionRecordListComReqDto.setInductionUnitTypeCode("DEPT");//sourceId:379249_1_21809
            queryDeputyInductionRecordListComReqDto.setIsTransaction("FALSE");//sourceId:379251_1_21809
            if (reqDto != null) {
                queryDeputyInductionRecordListComReqDto.setEntityId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:379250_1_21809
            }

            /*D1-3查询正副职就职记录列表(公共)[4851]   */
            Assert.isNull(queryDeputyInductionRecordListComReqDto.getEntityId(), "D1-3查询部门下直属就职记录列表-D1-3查询正副职就职记录列表(公共)-就职单位对象实例ID不能为空", false);
            Assert.isNull(queryDeputyInductionRecordListComReqDto.getInductionUnitTypeCode(), "D1-3查询部门下直属就职记录列表-D1-3查询正副职就职记录列表(公共)-就职单位类型实例不能为空", false);
            Assert.isNull(queryDeputyInductionRecordListComReqDto.getIsTransaction(), "D1-3查询部门下直属就职记录列表-D1-3查询正副职就职记录列表(公共)-是否异动不能为空", false);
            queryDeputyInductionRecordListComRespDto = queryDeputyInductionRecordListCom(queryDeputyInductionRecordListComReqDto)/*vcase invoke 同服务,同domain*/;


            queryDeputyInductionRecordListComRespDto_1 = queryDeputyInductionRecordListComRespDto;
        }
//processBranchName:正常结束 ,processBranchId:19517

        QueryDeptDirectlyInductionRecordListRespDto retData = new QueryDeptDirectlyInductionRecordListRespDto();
        if (queryInductionRecordListComRespDto_1 != null && queryInductionRecordListComRespDto_1.getOrgInductionRecordList() != null && !CollectionUtil.isEmpty(queryInductionRecordListComRespDto_1.getOrgInductionRecordList())) {
            retData.setOrgInductionRecordList(queryInductionRecordListComRespDto_1.getOrgInductionRecordList().stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:377821_1
        }
        if (queryDeputyInductionRecordListComRespDto_1 != null && queryDeputyInductionRecordListComRespDto_1.getOrgInductionRecordList() != null && !CollectionUtil.isEmpty(queryDeputyInductionRecordListComRespDto_1.getOrgInductionRecordList())) {
            retData.setOrgInductionRecordList(queryDeputyInductionRecordListComRespDto_1.getOrgInductionRecordList().stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:377821_1
        }


        return retData;
    }

    /**
     * D1-3查询正副职就职记录列表(公共)[4851]
     * gen by moon at 10/12/2023, 4:12:52 PM
     */
    @Trace(operationName = "D1-3查询正副职就职记录列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryDeputyInductionRecordListComRespDto queryDeputyInductionRecordListCom(QueryDeputyInductionRecordListComReqDto reqDto) {


        UpdateMergeInductionRecordRespDto collectionsMergeDataRes_1 = null;
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_1 = new ArrayList<>();
//步骤0: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        queryInductionRecordListReq.setPositionType("PRINCIPAL");//sourceId:379225_1
        queryInductionRecordListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:379227_1
        queryInductionRecordListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:379229_1
        if (reqDto != null) {
            queryInductionRecordListReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:379223_1
            queryInductionRecordListReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:379224_1
            queryInductionRecordListReq.setIsTransaction(reqDto.getIsTransaction());//SimpleFieldAssign//sourceId:379226_1
        }

        /*1-3-13查询就职记录列表（查询正职）[166]   */
        Assert.isNull(queryInductionRecordListReq.getPositionType(), "D1-3查询正副职就职记录列表(公共)-1-3-13查询就职记录列表（查询正职）-职务性质不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getSubjectLifeCycle(), "D1-3查询正副职就职记录列表(公共)-1-3-13查询就职记录列表（查询正职）-主体生命周期不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getSpaceId(), "D1-3查询正副职就职记录列表(公共)-1-3-13查询就职记录列表（查询正职）-创建于空间ID不能为空", false);
        listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


//步骤1: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord_2 = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq_1 = new QueryInductionRecordListReq();
        queryInductionRecordListReq_1.setPositionType("DEPUTY");//sourceId:379233_1
        queryInductionRecordListReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:379235_1
        queryInductionRecordListReq_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:379237_1
        if (reqDto != null) {
            queryInductionRecordListReq_1.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:379231_1
            queryInductionRecordListReq_1.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:379232_1
            queryInductionRecordListReq_1.setIsTransaction(reqDto.getIsTransaction());//SimpleFieldAssign//sourceId:379234_1
        }

        /*1-3-13查询就职记录列表（查询副职）[166]   */
        Assert.isNull(queryInductionRecordListReq_1.getPositionType(), "D1-3查询正副职就职记录列表(公共)-1-3-13查询就职记录列表（查询副职）-职务性质不能为空", false);
        Assert.isNull(queryInductionRecordListReq_1.getSubjectLifeCycle(), "D1-3查询正副职就职记录列表(公共)-1-3-13查询就职记录列表（查询副职）-主体生命周期不能为空", false);
        Assert.isNull(queryInductionRecordListReq_1.getSpaceId(), "D1-3查询正副职就职记录列表(公共)-1-3-13查询就职记录列表（查询副职）-创建于空间ID不能为空", false);
        listInductionRecord_2 = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq_1)/*vcase invoke 本地 method 方法调用;*/;


//步骤2: M-合并就职记录（特殊方法） - updateMergeInductionRecord
        //ModelCode: collectionsMergeData
        UpdateMergeInductionRecordRespDto collectionsMergeDataRes = null;
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            UpdateMergeInductionRecordReqDto collectionsMergeDataReq = new UpdateMergeInductionRecordReqDto();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                collectionsMergeDataReq.setOrgInductionRecordList(listInductionRecord.stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:379212_1
            }
            if (listInductionRecord_2 != null && !CollectionUtil.isEmpty(listInductionRecord_2) && listInductionRecord_2 != null && !CollectionUtil.isEmpty(listInductionRecord_2)) {
                collectionsMergeDataReq.setPerOrgInductionRecordList(listInductionRecord_2.stream().map(item -> BeanUtil.toBean(item, PerOrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:379213_1
            }

            /*M-合并就职记录（特殊方法）[1220]  入参多个数据集，取并集 */

            collectionsMergeDataRes = nbInductionRecord.updateMergeInductionRecord(collectionsMergeDataReq);


            collectionsMergeDataRes_1 = collectionsMergeDataRes;
        }

//步骤3: 1-2-10批量查询身份人员资料列表 - batchQueryBeginMembInfoList
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo = new ArrayList<>();
        BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq = new BatchQueryBeginMembInfoListReq();
        if (collectionsMergeDataRes != null && collectionsMergeDataRes.getMergeInductionRecordList() != null && !CollectionUtil.isEmpty(collectionsMergeDataRes.getMergeInductionRecordList())) {
            batchQueryBeginMembInfoListReq.setBeginMembInfoList(collectionsMergeDataRes.getMergeInductionRecordList().stream().map(item -> item.getOriginalRoleMemberId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:379216_1
        }

        /*1-2-10批量查询身份人员资料列表[1014]   */

        listOriginalRoleMemberInfo = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq)/*vcase invoke 本地 method 方法调用;*/;


        listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo;

//步骤4: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
        if (collectionsMergeDataRes != null && collectionsMergeDataRes.getMergeInductionRecordList() != null && !CollectionUtil.isEmpty(collectionsMergeDataRes.getMergeInductionRecordList())) {
            batchQueryUserinfoListReq.setUserList(collectionsMergeDataRes.getMergeInductionRecordList().stream().map(item -> item.getUserId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:379219_1
        }

        /*1-2-02批量查询个人资料列表[52]   */

        listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq)/*vcase invoke 本地 method 方法调用;*/;


        listUserinfo_1 = listUserinfo;

        QueryDeputyInductionRecordListComRespDto retData = new QueryDeputyInductionRecordListComRespDto();
        //数据集融合  MoreListToOneSource
        if (collectionsMergeDataRes_1 != null && !CollectionUtil.isEmpty(collectionsMergeDataRes_1.getMergeInductionRecordList())) {
            for (MergeInductionRecordDto mergeInductionRecordDto : collectionsMergeDataRes_1.getMergeInductionRecordList()) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                if (collectionsMergeDataRes_1 != null) {
                    retElm.setInductionRecordId(mergeInductionRecordDto.getInductionRecordId());//SimpleFieldAssign//sourceId:107654_2
                    retElm.setEntityId(mergeInductionRecordDto.getEntityId());//SimpleFieldAssign//sourceId:107655_2
                    retElm.setOriginalRoleMemberId(mergeInductionRecordDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:107656_2
                    retElm.setUserId(mergeInductionRecordDto.getUserId());//SimpleFieldAssign//sourceId:107657_2
                    retElm.setPositionIdName(mergeInductionRecordDto.getPositionIdName());//SimpleFieldAssign//sourceId:107658_2
                    retElm.setFirstLetter(mergeInductionRecordDto.getFirstLetter());//SimpleFieldAssign//sourceId:107659_2
                    retElm.setOrganizationId(mergeInductionRecordDto.getOrganizationId());//SimpleFieldAssign//sourceId:107660_2
                    retElm.setOrganizationName(mergeInductionRecordDto.getOrganizationName());//SimpleFieldAssign//sourceId:107661_2
                    retElm.setDeptShortName(mergeInductionRecordDto.getDeptShortName());//SimpleFieldAssign//sourceId:107662_2
                    retElm.setIsDirector(mergeInductionRecordDto.getIsDirector());//SimpleFieldAssign//sourceId:243103_2
                }
                retData.getOrgInductionRecordList().add(retElm);
                if (listOriginalRoleMemberInfo_1 != null && !CollectionUtil.isEmpty(listOriginalRoleMemberInfo_1)) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(mergeInductionRecordDto.getOriginalRoleMemberId())) {
                            retElm.setRoleMemberCode(originalRoleMemberInfo.getRoleMemberCode());//SimpleFieldAssign//sourceId:107663_2
                            retElm.setPositionIdName(originalRoleMemberInfo.getPositionIdName());//SimpleFieldAssign//sourceId:107664_2
                            retElm.setIsPtJob(originalRoleMemberInfo.getIsPtJob());//SimpleFieldAssign//sourceId:107665_2
                        }
                    }
                }

                if (listUserinfo_1 != null && !CollectionUtil.isEmpty(listUserinfo_1)) {
                    for (Userinfo userinfo : listUserinfo_1) {
                        if (userinfo.getUserId().equals(mergeInductionRecordDto.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:107668_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:107666_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:107667_2
                        }
                    }
                }

            }
        }//sourceId:379244_1


        return retData;
    }

    /**
     * D1-3批量查询就职记录(管理)(公共)[5024]
     * gen by moon at 6/26/2023, 5:25:45 PM
     */
    @Trace(operationName = "D1-3批量查询就职记录(管理)(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryInductionRecordComRespDto batchQueryInductionRecordCom(BatchQueryInductionRecordComReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_1 = new ArrayList<>();
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo_1 = new ArrayList<>();
//步骤0: 1-3-13批量查询平台就职记录(公共) - batchQueryPlatformInductionRecordCom
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        BatchQueryPlatformInductionRecordComReq batchQueryPlatformInductionRecordComReq = new BatchQueryPlatformInductionRecordComReq();
        batchQueryPlatformInductionRecordComReq.setIsEditing("FALSE");//sourceId:1063301_1
        if (reqDto != null) {
            batchQueryPlatformInductionRecordComReq.setOrgInductionRecordList(reqDto.getOrgInductionRecordList());//list-field-assign//sourceId:394341_1
        }

        /*1-3-13批量查询平台就职记录(公共)[5025]   */
        Assert.isNull(batchQueryPlatformInductionRecordComReq.getIsEditing(), "D1-3批量查询就职记录(管理)(公共)-1-3-13批量查询平台就职记录(公共)-是否未来不能为空", false);
        listInductionRecord = mInductionRecordService.batchQueryPlatformInductionRecordCom(batchQueryPlatformInductionRecordComReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

//步骤1: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryUserinfoListReq.setUserList(listInductionRecord.stream().map(item -> item.getUserId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:394345_1
            }

            /*1-2-02批量查询个人资料列表[52]   */

            listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listUserinfo_1 = listUserinfo;
        }

//步骤2: 1-2-10批量查询身份人员资料列表 - batchQueryBeginMembInfoList
        List<OriginalRoleMemberInfo> listOriginalRoleMemberInfo = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryBeginMembInfoListReq batchQueryBeginMembInfoListReq = new BatchQueryBeginMembInfoListReq();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryBeginMembInfoListReq.setBeginMembInfoList(listInductionRecord.stream().map(item -> item.getOriginalRoleMemberId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:394350_1
            }

            /*1-2-10批量查询身份人员资料列表[1014]   */

            listOriginalRoleMemberInfo = mOriginalRoleMemberInfoService.batchQueryBeginMembInfoList(batchQueryBeginMembInfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listOriginalRoleMemberInfo_1 = listOriginalRoleMemberInfo;
        }

        BatchQueryInductionRecordComRespDto retData = new BatchQueryInductionRecordComRespDto();
        //数据集融合  MoreListToOneSource
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1) && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            for (InductionRecord inductionRecord : listInductionRecord_1) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:110839_2
                retElm.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:110840_2
                retElm.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:110841_2
                retElm.setEntityId(inductionRecord.getEntityId());//SimpleFieldAssign//sourceId:110842_2
                retData.getOrgInductionRecordList().add(retElm);
                if (listUserinfo_1 != null && !CollectionUtil.isEmpty(listUserinfo_1)) {
                    for (Userinfo userinfo : listUserinfo_1) {
                        if (userinfo.getUserId().equals(inductionRecord.getUserId())) {
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:110845_2
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:110843_2
                            retElm.setNickName(userinfo.getNickName());//SimpleFieldAssign//sourceId:110844_2
                        }
                    }
                }

                if (listOriginalRoleMemberInfo_1 != null && !CollectionUtil.isEmpty(listOriginalRoleMemberInfo_1)) {
                    for (OriginalRoleMemberInfo originalRoleMemberInfo : listOriginalRoleMemberInfo_1) {
                        if (originalRoleMemberInfo.getOriginalRoleMemberId().equals(inductionRecord.getOriginalRoleMemberId())) {
                            retElm.setRoleMemberCode(originalRoleMemberInfo.getRoleMemberCode());//SimpleFieldAssign//sourceId:110846_2
                            retElm.setPositionIdName(originalRoleMemberInfo.getPositionIdName());//SimpleFieldAssign//sourceId:110847_2
                        }
                    }
                }

            }
        }//sourceId:394356_1


        return retData;
    }

    /**
     * D1-3批量查询身份人员就职记录(公共)[5080]
     * gen by moon at 11/1/2022, 7:47:47 AM
     */
    @Trace(operationName = "D1-3批量查询身份人员就职记录(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryOriginalRoleMemberInductionRecordComRespDto batchQueryOriginalRoleMemberInductionRecordCom(BatchQueryOriginalRoleMemberInductionRecordComReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
//步骤0: 1-3-14批量查询身份人员就职记录 - batchQueryOriginalRoleMemberInductionRecord
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        BatchQueryOriginalRoleMemberInductionRecordReq batchQueryOriginalRoleMemberInductionRecordReq = new BatchQueryOriginalRoleMemberInductionRecordReq();
        if (reqDto != null) {
            batchQueryOriginalRoleMemberInductionRecordReq.setOrgInductionRecordList(reqDto.getOrgInductionRecordList());//list-field-assign//sourceId:413897_1
            batchQueryOriginalRoleMemberInductionRecordReq.setIsMainInduction(reqDto.getIsMainInduction());//SimpleFieldAssign//sourceId:413898_1
            batchQueryOriginalRoleMemberInductionRecordReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:413899_1
        }

        /*1-3-14批量查询身份人员就职记录[5076]   */
        Assert.isNull(batchQueryOriginalRoleMemberInductionRecordReq.getIsMainInduction(), "D1-3批量查询身份人员就职记录(公共)-1-3-14批量查询身份人员就职记录-是否主岗不能为空", false);
        Assert.isNull(batchQueryOriginalRoleMemberInductionRecordReq.getSubjectLifeCycle(), "D1-3批量查询身份人员就职记录(公共)-1-3-14批量查询身份人员就职记录-主体生命周期不能为空", false);
        listInductionRecord = mInductionRecordService.batchQueryOriginalRoleMemberInductionRecord(batchQueryOriginalRoleMemberInductionRecordReq);


        listInductionRecord_1 = listInductionRecord;

        BatchQueryOriginalRoleMemberInductionRecordComRespDto retData = new BatchQueryOriginalRoleMemberInductionRecordComRespDto();
        retData.setOrgInductionRecordList(listInductionRecord_1.stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:413904_1


        return retData;
    }

    /**
     * D1执行回写部门主管(公共)[7424]
     * gen by moon at 9/22/2023, 6:27:37 PM
     */
    @Trace(operationName = "D1执行回写部门主管(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementWriteBackDeptControllerDisposeComRespDto implementWriteBackDeptControllerDisposeCom(ImplementWriteBackDeptControllerDisposeComReqDto reqDto) {


        //virtualUsage 1-3-09查询部门详情  48603
        Dept dept = null;
        QueryDeptDetailReq queryDeptDetailReq = new QueryDeptDetailReq();
        queryDeptDetailReq.setIsArchive("FALSE");//sourceId:1124384_1_48603
        if (reqDto != null) {
            queryDeptDetailReq.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1124383_1_48603
            queryDeptDetailReq.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1124385_1_48603
        }

        /*1-3-09查询部门详情[218]   */
        Assert.isNull(queryDeptDetailReq.getDeptId(), "D1执行回写部门主管(公共)-1-3-09查询部门详情-部门ID不能为空", false);
        Assert.isNull(queryDeptDetailReq.getOrganizationId(), "D1执行回写部门主管(公共)-1-3-09查询部门详情-组织ID不能为空", false);
        Assert.isNull(queryDeptDetailReq.getIsArchive(), "D1执行回写部门主管(公共)-1-3-09查询部门详情-是否存档不能为空", false);
        dept = mDeptService.queryDeptDetail(queryDeptDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((dept != null && reqDto != null && reqDto.getIsDirector() != null && reqDto.getIsDirector().equals("TRUE"))) {
            //if((1-3-09查询部门详情.出参 值不等于空  and D1执行回写部门主管(公共).是否主管 等于 是))  48604

            if ((reqDto != null && reqDto.getIsXzDirector() != null && reqDto.getIsXzDirector().equals("TRUE"))) {
                //if(D1执行回写部门主管(公共).是否行政主管 等于 是)  48609

                boolean bOOLEAN;
                Dept dept_2 = new Dept();
                if (reqDto != null) {
                    dept_2.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1124570_1_48612
                    dept_2.setDirectorIdCardName(reqDto.getIdCardName());//SimpleFieldAssign//sourceId:1124571_1_48612
                }

                /*1-3-09修改部门[215]   */
                Assert.isNull(dept_2.getDeptId(), "D1执行回写部门主管(公共)-1-3-09修改部门-部门ID不能为空", false);
                bOOLEAN = mDeptService.updateDept(dept_2)/*vcase invoke 本地 method 方法调用;*/;


            } else if ((reqDto != null && reqDto.getIsXzDirector() != null && reqDto.getIsXzDirector().equals("FALSE"))) {
                //elseif(D1执行回写部门主管(公共).是否行政主管 等于 否)  48611

                boolean bOOLEAN_1;
                Dept dept_3 = new Dept();
                if (reqDto != null) {
                    dept_3.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1124570_1_48841
                    dept_3.setPartyAndYouthDirectorIdCardName(reqDto.getIdCardName());//SimpleFieldAssign//sourceId:1124610_1_48841
                }

                /*1-3-09修改部门[215]   */
                Assert.isNull(dept_3.getDeptId(), "D1执行回写部门主管(公共)-1-3-09修改部门-部门ID不能为空", false);
                bOOLEAN_1 = mDeptService.updateDept(dept_3)/*vcase invoke 本地 method 方法调用;*/;


            }
        }
        ImplementWriteBackDeptControllerDisposeComRespDto retData = new ImplementWriteBackDeptControllerDisposeComRespDto();


        return retData;
    }

    /**
     * D1-执行分析新增就职记录是否主岗(公共)[7425]
     * gen by moon at 9/20/2023, 11:31:16 PM
     */
    @Trace(operationName = "D1-执行分析新增就职记录是否主岗(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementAnalyzeNewInductionRecordIsMajorPositionComRespDto implementAnalyzeNewInductionRecordIsMajorPositionCom(ImplementAnalyzeNewInductionRecordIsMajorPositionComReqDto reqDto) {


        QueryReceiveFieldDetailRespDto receptionServiceRes_5 = null;
//virtualUsage 约定：是  48620
        //ModelCode: receptionService
        QueryReceiveFieldDetailRespDto receptionServiceRes = null;
        QueryReceiveFieldDetailReqDto receptionServiceReq = new QueryReceiveFieldDetailReqDto();
        receptionServiceReq.setTureOrFalse("TRUE");//sourceId:1125153_1_48620

        /*约定：是[3715]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq.getTureOrFalse(), "D1-执行分析新增就职记录是否主岗(公共)-约定：是-是否不能为空", false);
        receptionServiceRes = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq);


//virtualUsage 约定：否  48621
        //ModelCode: receptionService
        QueryReceiveFieldDetailRespDto receptionServiceRes_2 = null;
        QueryReceiveFieldDetailReqDto receptionServiceReq_1 = new QueryReceiveFieldDetailReqDto();
        receptionServiceReq_1.setTureOrFalse("FALSE");//sourceId:1125336_1_48621

        /*约定：否[3715]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq_1.getTureOrFalse(), "D1-执行分析新增就职记录是否主岗(公共)-约定：否-是否不能为空", false);
        receptionServiceRes_2 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_1);


        if ((reqDto != null && reqDto.getInductionUnitTypeCode() != null && reqDto.getInductionUnitTypeCode().equals("DEPT"))) {
            //if(D1-执行分析新增就职记录是否主岗(公共).就职单位类型实例 等于 部门)  48629

            List<InductionRecord> listInductionRecord = new ArrayList<>();
            QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
            queryInductionRecordListReq.setIsMainInduction("TRUE");//sourceId:1125350_1_48630
            queryInductionRecordListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_USERID//sourceId:1124614_1_48630
            if (reqDto != null) {
                queryInductionRecordListReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1124613_1_48630
                queryInductionRecordListReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:1124611_1_48630
                queryInductionRecordListReq.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1124612_1_48630
            }

            /*1-3-13查询就职记录列表[166]   */
            Assert.isNull(queryInductionRecordListReq.getOriginalRoleMemberId(), "D1-执行分析新增就职记录是否主岗(公共)-1-3-13查询就职记录列表-身份人员ID不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getInductionUnitTypeCode(), "D1-执行分析新增就职记录是否主岗(公共)-1-3-13查询就职记录列表-就职单位类型实例不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getOrganizationId(), "D1-执行分析新增就职记录是否主岗(公共)-1-3-13查询就职记录列表-组织ID不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getIsMainInduction(), "D1-执行分析新增就职记录是否主岗(公共)-1-3-13查询就职记录列表-是否主岗不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getSpaceId(), "D1-执行分析新增就职记录是否主岗(公共)-1-3-13查询就职记录列表-创建于空间ID不能为空", false);
            listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((listInductionRecord != null && listInductionRecord != null && listInductionRecord.size() == 0)) {
                //if(1-3-13查询就职记录列表.就职记录列表数据集条数 等于 0)  48631

//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes_4 = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq_2 = new QueryReceiveFieldDetailReqDto();
                if (receptionServiceRes != null) {
                    receptionServiceReq_2.setIsMainInduction(receptionServiceRes.getTureOrFalse());//SimpleFieldAssign//sourceId:1125345_1_48635
                }

                /*约定出参：是否主岗[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_2.getIsMainInduction(), "D1-执行分析新增就职记录是否主岗(公共)-约定出参：是否主岗-是否主岗不能为空", false);
                receptionServiceRes_4 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_2);


                receptionServiceRes_5 = receptionServiceRes_4;
            } else if ((listInductionRecord != null && listInductionRecord != null && listInductionRecord.size() > 0)) {
                //elseif(1-3-13查询就职记录列表.就职记录列表数据集条数 大于 0)  48633

//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes_6 = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq_3 = new QueryReceiveFieldDetailReqDto();
                if (receptionServiceRes_2 != null) {
                    receptionServiceReq_3.setIsMainInduction(receptionServiceRes_2.getTureOrFalse());//SimpleFieldAssign//sourceId:1125345_1_48634
                }

                /*约定出参：是否主岗[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_3.getIsMainInduction(), "D1-执行分析新增就职记录是否主岗(公共)-约定出参：是否主岗-是否主岗不能为空", false);
                receptionServiceRes_6 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_3);


                receptionServiceRes_5 = receptionServiceRes_6;
            }
        }
        ImplementAnalyzeNewInductionRecordIsMajorPositionComRespDto retData = new ImplementAnalyzeNewInductionRecordIsMajorPositionComRespDto();
        if (receptionServiceRes_5 != null) {
            retData.setIsMainInduction(receptionServiceRes_5.getIsMainInduction());//SimpleFieldAssign//sourceId:1125353_1
        }


        return retData;
    }

    /**
     * D1-设置主岗(公共)[7426]
     * gen by moon at 9/23/2023, 11:30:23 AM
     */
    @Trace(operationName = "D1-设置主岗(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementSetMajorPositionComRespDto implementSetMajorPositionCom(ImplementSetMajorPositionComReqDto reqDto) {


        //virtualUsage 1-3-13查询就职记录详情  48636
        InductionRecord inductionRecord = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        if (reqDto != null) {
            queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1125616_1_48636
        }

        /*1-3-13查询就职记录详情[165]   */
        Assert.isNull(queryinductionRecordDetailReq.getInductionRecordId(), "D1-设置主岗(公共)-1-3-13查询就职记录详情-就职记录ID不能为空", false);
        inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((reqDto != null && reqDto.getIsMainInduction() != null && reqDto.getIsMainInduction().equals("TRUE") && inductionRecord != null && inductionRecord.getIsMainInduction() != null && inductionRecord.getIsMainInduction().equals("FALSE"))) {
            //if((D1-设置主岗(公共).是否主岗 等于 是 and 1-3-13查入参就职记录是否是主岗.是否主岗 等于 否))  48637

            boolean bOOLEAN;
            InductionRecord inductionRecord_2 = new InductionRecord();
            inductionRecord_2.setOperationInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1125663_1_48638
            inductionRecord_2.setOperateTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:1125664_1_48638
            if (reqDto != null) {
                inductionRecord_2.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1125661_1_48638
                inductionRecord_2.setIsMainInduction(reqDto.getIsMainInduction());//SimpleFieldAssign//sourceId:1125662_1_48638
            }

            /*1-3-13修改就职记录[163]   */
            Assert.isNull(inductionRecord_2.getInductionRecordId(), "D1-设置主岗(公共)-1-3-13修改就职记录-就职记录ID不能为空", false);
            Assert.isNull(inductionRecord_2.getIsMainInduction(), "D1-设置主岗(公共)-1-3-13修改就职记录-是否主岗不能为空", false);
            Assert.isNull(inductionRecord_2.getOperationInductionId(), "D1-设置主岗(公共)-1-3-13修改就职记录-操作人就职记录ID不能为空", false);
            Assert.isNull(inductionRecord_2.getOperateTime(), "D1-设置主岗(公共)-1-3-13修改就职记录-操作时间不能为空", false);
            bOOLEAN = mInductionRecordService.updateInductionRecord(inductionRecord_2)/*vcase invoke 本地 method 方法调用;*/;


            List<InductionRecord> listInductionRecord = new ArrayList<>();
            QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
            queryInductionRecordListReq.setInductionUnitTypeCode("DEPT");//sourceId:1127116_1_48639
            queryInductionRecordListReq.setIsArchive("FALSE");//sourceId:1130193_1_48639
            queryInductionRecordListReq.setArchivngType("NOT_ARCHIVE");//sourceId:1130194_1_48639
            if (inductionRecord != null) {
                queryInductionRecordListReq.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1125707_1_48639
                queryInductionRecordListReq.setOrganizationId(inductionRecord.getOrganizationId());//SimpleFieldAssign//sourceId:1125706_1_48639
                queryInductionRecordListReq.setSpaceId(inductionRecord.getSpaceId());//SimpleFieldAssign//sourceId:1125708_1_48639
            }

            /*1-3-13查询就职记录列表[166]   */
            Assert.isNull(queryInductionRecordListReq.getOriginalRoleMemberId(), "D1-设置主岗(公共)-1-3-13查询就职记录列表-身份人员ID不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getInductionUnitTypeCode(), "D1-设置主岗(公共)-1-3-13查询就职记录列表-就职单位类型实例不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getOrganizationId(), "D1-设置主岗(公共)-1-3-13查询就职记录列表-组织ID不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getIsArchive(), "D1-设置主岗(公共)-1-3-13查询就职记录列表-是否存档不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getArchivngType(), "D1-设置主岗(公共)-1-3-13查询就职记录列表-存档类型不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getSpaceId(), "D1-设置主岗(公共)-1-3-13查询就职记录列表-创建于空间ID不能为空", false);
            listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


            if ((listInductionRecord != null && listInductionRecord != null && listInductionRecord.size() > 1)) {
                //if(1-3-13查当前员工的就职记录列表（就职类型部门）.就职记录列表数据集条数 大于 1)  48640

                ImplementDataFilterSpecRecByComRespDto implementDataFilterSpecRecByComRespDto = null;
                if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
                    ImplementDataFilterSpecRecByComReqDto implementDataFilterSpecRecByComReqDto = new ImplementDataFilterSpecRecByComReqDto();
                    if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                        implementDataFilterSpecRecByComReqDto.setDataFilterSpecRecByList(//objList-to-objLists
                                listInductionRecord.stream().map(item -> {
                                    DataFilterSpecRecByDto elm = new DataFilterSpecRecByDto();
                                    elm.setCustomField(item.getInductionRecordId());//SimpleFieldAssign//sourceId:234739_2_48641
                                    return elm;
                                }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1125713_1_48641
                    }
                    if (reqDto != null) {
                        implementDataFilterSpecRecByComReqDto.setCustomField(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1125716_1_48641
                    }

                    /*D2执行数据集按入参过滤指定记录服务(公共)[5477]   */
                    Assert.isNull(implementDataFilterSpecRecByComReqDto.getCustomField(), "D1-设置主岗(公共)-D2执行数据集按入参过滤指定记录服务(公共)-自定义字段不能为空", false);
                    implementDataFilterSpecRecByComRespDto = interfaceModeService.implementDataFilterSpecRecByCom(implementDataFilterSpecRecByComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


                }
                boolean bOOLEAN_1;
                if (implementDataFilterSpecRecByComRespDto != null) {
                    List<InductionRecord> listInductionRecord_2 = new ArrayList<>();
                    if (implementDataFilterSpecRecByComRespDto != null && implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList() != null && !CollectionUtil.isEmpty(implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList())) {
                        listInductionRecord_2 = //objList-to-objLists
                                implementDataFilterSpecRecByComRespDto.getDataFilterSpecRecByList().stream().map(item -> {
                                    InductionRecord elm = new InductionRecord();
                                    elm.setIsMainInduction("FALSE");//sourceId:234761_2_48642
                                    if (item != null) {
                                        elm.setInductionRecordId(item.getCustomField());//SimpleFieldAssign//sourceId:234760_2_48642
                                    }
                                    return elm;
                                }).collect(Collectors.toList());//objList-to-objLists//sourceId:1125719_1_48642
                    }

                    /*1-3-13批量修改就职记录[1647]   */

                    bOOLEAN_1 = mInductionRecordService.batchUpdateInductionRecord(listInductionRecord_2)/*vcase invoke 本地 method 方法调用;*/;


                }
            }
        }
        ImplementSetMajorPositionComRespDto retData = new ImplementSetMajorPositionComRespDto();


        return retData;
    }

    /**
     * D1-当前员工设主岗元素分析(公共)[7428]
     * gen by moon at 9/22/2023, 6:27:44 PM
     */
    @Trace(operationName = "D1-当前员工设主岗元素分析(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementCurrentStaffMajorPositionElementAnalyseComRespDto implementCurrentStaffMajorPositionElementAnalyseCom(ImplementCurrentStaffMajorPositionElementAnalyseComReqDto reqDto) {


        QueryReceiveFieldDetailRespDto receptionServiceRes_5 = null;
//virtualUsage 约定：0（设主岗元素不可用）  48659
        //ModelCode: receptionService
        QueryReceiveFieldDetailRespDto receptionServiceRes = null;
        QueryReceiveFieldDetailReqDto receptionServiceReq = new QueryReceiveFieldDetailReqDto();
        receptionServiceReq.setCustomField("0");//CUSTOM_CONVENTION//sourceId:1128775_1_48659

        /*约定：0（设主岗元素不可用）[3715]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq.getCustomField(), "D1-当前员工设主岗元素分析(公共)-约定：0（设主岗元素不可用）-自定义字段不能为空", false);
        receptionServiceRes = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq);


//virtualUsage 约定：1（设主岗元素可用）  48660
        //ModelCode: receptionService
        QueryReceiveFieldDetailRespDto receptionServiceRes_2 = null;
        QueryReceiveFieldDetailReqDto receptionServiceReq_1 = new QueryReceiveFieldDetailReqDto();
        receptionServiceReq_1.setCustomField("1");//CUSTOM_CONVENTION//sourceId:1128777_1_48660

        /*约定：1（设主岗元素可用）[3715]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq_1.getCustomField(), "D1-当前员工设主岗元素分析(公共)-约定：1（设主岗元素可用）-自定义字段不能为空", false);
        receptionServiceRes_2 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_1);


        if ((reqDto != null && reqDto.getOrgInductionRecordList() != null && reqDto.getOrgInductionRecordList().size() > 1)) {
            //if(D1-当前员工设主岗元素分析(公共).就职记录列表数据集条数 大于 1)  48658

//ModelCode: receptionService
            QueryReceiveFieldDetailRespDto receptionServiceRes_4 = null;
            QueryReceiveFieldDetailReqDto receptionServiceReq_2 = new QueryReceiveFieldDetailReqDto();
            if (receptionServiceRes_2 != null) {
                receptionServiceReq_2.setSetMajorPositionElement(Long.valueOf(receptionServiceRes_2.getCustomField()));//SimpleFieldAssign//sourceId:1127098_1_48661
            }

            /*约定出参：设主岗元素[3715]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_2.getSetMajorPositionElement(), "D1-当前员工设主岗元素分析(公共)-约定出参：设主岗元素-设主岗元素不能为空", false);
            receptionServiceRes_4 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_2);


            receptionServiceRes_5 = receptionServiceRes_4;
        } else {
            //else  48662

//ModelCode: receptionService
            QueryReceiveFieldDetailRespDto receptionServiceRes_6 = null;
            QueryReceiveFieldDetailReqDto receptionServiceReq_3 = new QueryReceiveFieldDetailReqDto();
            if (receptionServiceRes != null) {
                receptionServiceReq_3.setSetMajorPositionElement(Long.valueOf(receptionServiceRes.getCustomField()));//SimpleFieldAssign//sourceId:1127098_1_48663
            }

            /*约定出参：设主岗元素[3715]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_3.getSetMajorPositionElement(), "D1-当前员工设主岗元素分析(公共)-约定出参：设主岗元素-设主岗元素不能为空", false);
            receptionServiceRes_6 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_3);


            receptionServiceRes_5 = receptionServiceRes_6;
        }
        ImplementCurrentStaffMajorPositionElementAnalyseComRespDto retData = new ImplementCurrentStaffMajorPositionElementAnalyseComRespDto();
        if (receptionServiceRes_5 != null) {
            retData.setSetMajorPositionElement(receptionServiceRes_5.getSetMajorPositionElement());//SimpleFieldAssign//sourceId:1128779_1
        }


        return retData;
    }

    /**
     * D1-执行清理空间管理员临时就职记录(公共)[7429]
     * gen by moon at 9/20/2023, 11:32:05 PM
     */
    @Trace(operationName = "D1-执行清理空间管理员临时就职记录(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementCleanSpaceAdminTtemporarynductionComRespDto implementCleanSpaceAdminTtemporarynductionCom(ImplementCleanSpaceAdminTtemporarynductionComReqDto reqDto) {


        //virtualUsage 1-3-13查询就职记录列表  48669
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        queryInductionRecordListReq.setInductionUnitTypeCode("ORG");//sourceId:1127745_1_48669
        queryInductionRecordListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1130195_1_48669
        queryInductionRecordListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1130196_1_48669
        if (reqDto != null) {
            queryInductionRecordListReq.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1127746_1_48669
        }

        /*1-3-13查询就职记录列表[166]   */
        Assert.isNull(queryInductionRecordListReq.getInductionUnitTypeCode(), "D1-执行清理空间管理员临时就职记录(公共)-1-3-13查询就职记录列表-就职单位类型实例不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getOrganizationId(), "D1-执行清理空间管理员临时就职记录(公共)-1-3-13查询就职记录列表-组织ID不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getSubjectLifeCycle(), "D1-执行清理空间管理员临时就职记录(公共)-1-3-13查询就职记录列表-主体生命周期不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getSpaceId(), "D1-执行清理空间管理员临时就职记录(公共)-1-3-13查询就职记录列表-创建于空间ID不能为空", false);
        listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


        if ((listInductionRecord != null && listInductionRecord != null && listInductionRecord.size() > 0)) {
            //if(1-3-13查询就职记录列表.就职记录列表数据集条数 大于 0)  48670

//ModelCode: circulationCollections
            for (InductionRecord circulationCollectionsRes : listInductionRecord) {

                RoleMember roleMember = null;
                QueryRoleRelDetailReq queryRoleRelDetailReq = new QueryRoleRelDetailReq();
                queryRoleRelDetailReq.setRoleCode("ADMIN");//CUSTOM_CONVENTION//sourceId:1127814_1_48673
                queryRoleRelDetailReq.setRelationshipValid("FALSE");//sourceId:1127815_1_48673
                queryRoleRelDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1127816_1_48673
                if (circulationCollectionsRes != null) {
                    queryRoleRelDetailReq.setOriginalRoleMemberId(circulationCollectionsRes.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1127813_1_48673
                }

                /*1-2-13查询角色人员详情[335]   */
                Assert.isNull(queryRoleRelDetailReq.getOriginalRoleMemberId(), "D1-执行清理空间管理员临时就职记录(公共)-1-2-13查询角色人员详情-身份人员ID不能为空", false);
                Assert.isNull(queryRoleRelDetailReq.getRoleCode(), "D1-执行清理空间管理员临时就职记录(公共)-1-2-13查询角色人员详情-角色标识不能为空", false);
                Assert.isNull(queryRoleRelDetailReq.getRelationshipValid(), "D1-执行清理空间管理员临时就职记录(公共)-1-2-13查询角色人员详情-是否失效不能为空", false);
                Assert.isNull(queryRoleRelDetailReq.getSubjectLifeCycle(), "D1-执行清理空间管理员临时就职记录(公共)-1-2-13查询角色人员详情-主体生命周期不能为空", false);
                roleMember = mRoleMemberService.queryRoleRelDetail(queryRoleRelDetailReq)/*vcase invoke 本地 method 方法调用;*/;


                if ((roleMember != null)) {
                    //if(1-2-13查角色人员详情（是否空间管理员）.出参 值不等于空 )  48674

                    List<InductionRecord> listInductionRecord_2 = new ArrayList<>();
                    QueryInductionRecordListReq queryInductionRecordListReq_1 = new QueryInductionRecordListReq();
                    queryInductionRecordListReq_1.setInductionUnitTypeCode("DEPT");//sourceId:1127854_1_48675
                    queryInductionRecordListReq_1.setIsMainInduction("TRUE");//sourceId:1127857_1_48675
                    queryInductionRecordListReq_1.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1127858_1_48675
                    queryInductionRecordListReq_1.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1127859_1_48675
                    if (circulationCollectionsRes != null) {
                        queryInductionRecordListReq_1.setOriginalRoleMemberId(circulationCollectionsRes.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1127856_1_48675
                    }
                    if (reqDto != null) {
                        queryInductionRecordListReq_1.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1127855_1_48675
                    }

                    /*1-3-13查询就职记录列表[166]   */
                    Assert.isNull(queryInductionRecordListReq_1.getOriginalRoleMemberId(), "D1-执行清理空间管理员临时就职记录(公共)-1-3-13查询就职记录列表-身份人员ID不能为空", false);
                    Assert.isNull(queryInductionRecordListReq_1.getOrganizationId(), "D1-执行清理空间管理员临时就职记录(公共)-1-3-13查询就职记录列表-组织ID不能为空", false);
                    Assert.isNull(queryInductionRecordListReq_1.getInductionUnitTypeCode(), "D1-执行清理空间管理员临时就职记录(公共)-1-3-13查询就职记录列表-就职单位类型实例不能为空", false);
                    Assert.isNull(queryInductionRecordListReq_1.getIsMainInduction(), "D1-执行清理空间管理员临时就职记录(公共)-1-3-13查询就职记录列表-是否主岗不能为空", false);
                    Assert.isNull(queryInductionRecordListReq_1.getSubjectLifeCycle(), "D1-执行清理空间管理员临时就职记录(公共)-1-3-13查询就职记录列表-主体生命周期不能为空", false);
                    Assert.isNull(queryInductionRecordListReq_1.getSpaceId(), "D1-执行清理空间管理员临时就职记录(公共)-1-3-13查询就职记录列表-创建于空间ID不能为空", false);
                    listInductionRecord_2 = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq_1)/*vcase invoke 本地 method 方法调用;*/;


                    if ((listInductionRecord_2 != null && listInductionRecord_2 != null && listInductionRecord_2.size() > 0)) {
                        //if(1-3-13查就职类型部门的主岗就职记录列表.就职记录列表数据集条数 大于 0)  48676

                        boolean bOOLEAN;
                        String string = new String();
                        if (circulationCollectionsRes != null) {
                            string = circulationCollectionsRes.getInductionRecordId();
                            ;//SimpleFieldAssign//sourceId:1127852_1_48677
                        }

                        /*1-3-13删除就职记录[164]   */
                        Assert.isNull(string, "D1-执行清理空间管理员临时就职记录(公共)-1-3-13删除就职记录-就职记录ID不能为空", false);
                        bOOLEAN = mInductionRecordService.deleteInductionRecord(string)/*vcase invoke 本地 method 方法调用;*/;


                    }
                }
//ModelCode: circulationEnd
            }

        }
        ImplementCleanSpaceAdminTtemporarynductionComRespDto retData = new ImplementCleanSpaceAdminTtemporarynductionComRespDto();


        return retData;
    }

    /**
     * D1执行分析就职记录生命周期操作条件[7431]
     * gen by moon at 9/20/2023, 11:32:18 PM
     */
    @Trace(operationName = "D1执行分析就职记录生命周期操作条件")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementAnalyseInductionRecordLifecyCycleOperationTermRespDto implementAnalyseInductionRecordLifecyCycleOperationTerm(ImplementAnalyseInductionRecordLifecyCycleOperationTermReqDto reqDto) {


        QueryReceiveFieldDetailRespDto receptionServiceRes_3 = null;
//virtualUsage 1-3-13查当前的就职记录信息  48678
        InductionRecord inductionRecord = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        queryinductionRecordDetailReq.setIsArchive("FALSE");//sourceId:1128706_1_48678
        queryinductionRecordDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1128707_1_48678
        if (reqDto != null) {
            queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1128705_1_48678
        }

        /*1-3-13查当前的就职记录信息[165]   */
        Assert.isNull(queryinductionRecordDetailReq.getInductionRecordId(), "D1执行分析就职记录生命周期操作条件-1-3-13查当前的就职记录信息-就职记录ID不能为空", false);
        Assert.isNull(queryinductionRecordDetailReq.getIsArchive(), "D1执行分析就职记录生命周期操作条件-1-3-13查当前的就职记录信息-是否存档不能为空", false);
        Assert.isNull(queryinductionRecordDetailReq.getSpaceId(), "D1执行分析就职记录生命周期操作条件-1-3-13查当前的就职记录信息-创建于空间ID不能为空", false);
        inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


//virtualUsage 1-3-13查当前员工就职记录列表（用于判断是否允许删除）  48679
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        if (inductionRecord != null) {
            QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
            queryInductionRecordListReq.setInductionUnitTypeCode("DEPT");//sourceId:1128712_1_48679
            queryInductionRecordListReq.setIsArchive("FALSE");//sourceId:1128715_1_48679
            queryInductionRecordListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1128716_1_48679
            if (inductionRecord != null) {
                queryInductionRecordListReq.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1128714_1_48679
                queryInductionRecordListReq.setOrganizationId(inductionRecord.getOrganizationId());//SimpleFieldAssign//sourceId:1128713_1_48679
            }

            /*1-3-13查当前员工就职记录列表（用于判断是否允许删除）[166]   */
            Assert.isNull(queryInductionRecordListReq.getOriginalRoleMemberId(), "D1执行分析就职记录生命周期操作条件-1-3-13查当前员工就职记录列表（用于判断是否允许删除）-身份人员ID不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getOrganizationId(), "D1执行分析就职记录生命周期操作条件-1-3-13查当前员工就职记录列表（用于判断是否允许删除）-组织ID不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getInductionUnitTypeCode(), "D1执行分析就职记录生命周期操作条件-1-3-13查当前员工就职记录列表（用于判断是否允许删除）-就职单位类型实例不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getIsArchive(), "D1执行分析就职记录生命周期操作条件-1-3-13查当前员工就职记录列表（用于判断是否允许删除）-是否存档不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getSpaceId(), "D1执行分析就职记录生命周期操作条件-1-3-13查当前员工就职记录列表（用于判断是否允许删除）-创建于空间ID不能为空", false);
            listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


        }
        if ((listInductionRecord != null && listInductionRecord != null && listInductionRecord.size() > 1)) {
            //if(1-3-13查询就职记录列表.就职记录列表数据集条数 大于 1)  48680

            if ((reqDto != null && reqDto.getLifecyCycleOperationType() != null && reqDto.getLifecyCycleOperationType().equals("DELETE") && inductionRecord != null && inductionRecord.getIsMainInduction() != null && inductionRecord.getIsMainInduction().equals("FALSE") && inductionRecord != null && inductionRecord.getSubjectLifeCycle() != null && inductionRecord.getSubjectLifeCycle().equals("EDITING")) || (reqDto != null && reqDto.getLifecyCycleOperationType() != null && reqDto.getLifecyCycleOperationType().equals("ARCHIVE") && inductionRecord != null && inductionRecord.getIsMainInduction() != null && inductionRecord.getIsMainInduction().equals("FALSE") && inductionRecord != null && inductionRecord.getSubjectLifeCycle() != null && inductionRecord.getSubjectLifeCycle().equals("CURRENTLY_VALID"))) {
                //if((D1执行分析就职记录生命周期操作条件.生命周期操作类型 等于 删除 and 1-3-13查当前的就职记录信息.是否主岗 等于 否 and 1-3-13查当前的就职记录信息.主体生命周期 等于 正在编辑) or (D1执行分析就职记录生命周期操作条件.生命周期操作类型 等于 存档 and 1-3-13查当前的就职记录信息.是否主岗 等于 否 and 1-3-13查当前的就职记录信息.主体生命周期 等于 当前有效))  48683

//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq = new QueryReceiveFieldDetailReqDto();
                receptionServiceReq.setTureOrFalse("TRUE");//sourceId:1128724_1_48688

                /*M1约定为允许操作[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq.getTureOrFalse(), "D1执行分析就职记录生命周期操作条件-M1约定为允许操作-是否不能为空", false);
                receptionServiceRes = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq);


//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes_2 = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq_1 = new QueryReceiveFieldDetailReqDto();
                if (receptionServiceRes != null) {
                    receptionServiceReq_1.setTureOrFalse(receptionServiceRes.getTureOrFalse());//SimpleFieldAssign//sourceId:1128728_1_48689
                }

                /*M1接收上文出参字段值[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_1.getTureOrFalse(), "D1执行分析就职记录生命周期操作条件-M1接收上文出参字段值-是否不能为空", false);
                receptionServiceRes_2 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_1);


                receptionServiceRes_3 = receptionServiceRes_2;
            } else {
                //else  48697

//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes_4 = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq_2 = new QueryReceiveFieldDetailReqDto();
                receptionServiceReq_2.setTureOrFalse("FALSE");//sourceId:1128726_1_48698

                /*M1约定为不允许操作[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_2.getTureOrFalse(), "D1执行分析就职记录生命周期操作条件-M1约定为不允许操作-是否不能为空", false);
                receptionServiceRes_4 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_2);


//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes_6 = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq_3 = new QueryReceiveFieldDetailReqDto();
                if (receptionServiceRes_4 != null) {
                    receptionServiceReq_3.setTureOrFalse(receptionServiceRes_4.getTureOrFalse());//SimpleFieldAssign//sourceId:1128728_1_48699
                }

                /*M1接收上文出参字段值[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_3.getTureOrFalse(), "D1执行分析就职记录生命周期操作条件-M1接收上文出参字段值-是否不能为空", false);
                receptionServiceRes_6 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_3);


                receptionServiceRes_3 = receptionServiceRes_6;
            }
        } else if ((listInductionRecord != null && listInductionRecord != null && listInductionRecord.size() == 1)) {
            //elseif(1-3-13查询就职记录列表.就职记录列表数据集条数 等于 1)  48681

            if ((reqDto != null && reqDto.getLifecyCycleOperationType() != null && reqDto.getLifecyCycleOperationType().equals("DELETE") && inductionRecord != null && inductionRecord.getSubjectLifeCycle() != null && inductionRecord.getSubjectLifeCycle().equals("EDITING")) || (reqDto != null && reqDto.getLifecyCycleOperationType() != null && reqDto.getLifecyCycleOperationType().equals("ARCHIVE") && inductionRecord != null && inductionRecord.getSubjectLifeCycle() != null && inductionRecord.getSubjectLifeCycle().equals("CURRENTLY_VALID"))) {
                //if((D1执行分析就职记录生命周期操作条件.生命周期操作类型 等于 删除 and 1-3-13查当前的就职记录信息.主体生命周期 等于 正在编辑) or (D1执行分析就职记录生命周期操作条件.生命周期操作类型 等于 存档 and 1-3-13查当前的就职记录信息.主体生命周期 等于 当前有效))  48686

//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes_7 = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq_4 = new QueryReceiveFieldDetailReqDto();
                receptionServiceReq_4.setTureOrFalse("TRUE");//sourceId:1128724_1_48691

                /*M1约定为允许操作[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_4.getTureOrFalse(), "D1执行分析就职记录生命周期操作条件-M1约定为允许操作-是否不能为空", false);
                receptionServiceRes_7 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_4);


//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes_8 = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq_5 = new QueryReceiveFieldDetailReqDto();
                if (receptionServiceRes_7 != null) {
                    receptionServiceReq_5.setTureOrFalse(receptionServiceRes_7.getTureOrFalse());//SimpleFieldAssign//sourceId:1128728_1_48692
                }

                /*M1接收上文出参字段值[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_5.getTureOrFalse(), "D1执行分析就职记录生命周期操作条件-M1接收上文出参字段值-是否不能为空", false);
                receptionServiceRes_8 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_5);


                receptionServiceRes_3 = receptionServiceRes_8;
            } else {
                //else  48694

//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes_9 = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq_6 = new QueryReceiveFieldDetailReqDto();
                receptionServiceReq_6.setTureOrFalse("FALSE");//sourceId:1128726_1_48695

                /*M1约定为不允许操作[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_6.getTureOrFalse(), "D1执行分析就职记录生命周期操作条件-M1约定为不允许操作-是否不能为空", false);
                receptionServiceRes_9 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_6);


//ModelCode: receptionService
                QueryReceiveFieldDetailRespDto receptionServiceRes_10 = null;
                QueryReceiveFieldDetailReqDto receptionServiceReq_7 = new QueryReceiveFieldDetailReqDto();
                if (receptionServiceRes_9 != null) {
                    receptionServiceReq_7.setTureOrFalse(receptionServiceRes_9.getTureOrFalse());//SimpleFieldAssign//sourceId:1128728_1_48696
                }

                /*M1接收上文出参字段值[3715]  用于特殊方法接收上游入参。 */
                Assert.isNull(receptionServiceReq_7.getTureOrFalse(), "D1执行分析就职记录生命周期操作条件-M1接收上文出参字段值-是否不能为空", false);
                receptionServiceRes_10 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_7);


                receptionServiceRes_3 = receptionServiceRes_10;
            }
        }
        ImplementAnalyseInductionRecordLifecyCycleOperationTermRespDto retData = new ImplementAnalyseInductionRecordLifecyCycleOperationTermRespDto();
        if (receptionServiceRes_3 != null) {
            retData.setTureOrFalse(receptionServiceRes_3.getTureOrFalse());//SimpleFieldAssign//sourceId:1128730_1
        }


        return retData;
    }

    /**
     * D1执行分析是否行政主管(公共)[7432]
     * gen by moon at 9/20/2023, 11:32:31 PM
     */
    @Trace(operationName = "D1执行分析是否行政主管(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementAnalyseIsXzDirectorComRespDto implementAnalyseIsXzDirectorCom(ImplementAnalyseIsXzDirectorComReqDto reqDto) {


        QueryReceiveFieldDetailRespDto receptionServiceRes_3 = null;
//virtualUsage 1-3-09查询部门详情  48748
        Dept dept = null;
        QueryDeptDetailReq queryDeptDetailReq = new QueryDeptDetailReq();
        if (reqDto != null) {
            queryDeptDetailReq.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1129187_1_48748
//queryDeptDetailReq.setDirectorInductionId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1129188_1_48748
        }

        /*1-3-09查询部门详情[218]   */
        Assert.isNull(queryDeptDetailReq.getDeptId(), "D1执行分析是否行政主管(公共)-1-3-09查询部门详情-部门ID不能为空", false);
        dept = mDeptService.queryDeptDetail(queryDeptDetailReq)/*vcase invoke 本地 method 方法调用;*/;


//virtualUsage 1-3-09查询部门详情  48749
        Dept dept_2 = null;
        QueryDeptDetailReq queryDeptDetailReq_1 = new QueryDeptDetailReq();
        if (reqDto != null) {
            queryDeptDetailReq_1.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1129187_1_48749
//queryDeptDetailReq_1.setPartyAndYouthDirectorInductionId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1129189_1_48749
        }

        /*1-3-09查询部门详情[218]   */
        Assert.isNull(queryDeptDetailReq_1.getDeptId(), "D1执行分析是否行政主管(公共)-1-3-09查询部门详情-部门ID不能为空", false);
        dept_2 = mDeptService.queryDeptDetail(queryDeptDetailReq_1)/*vcase invoke 本地 method 方法调用;*/;


        if ((dept != null && dept_2 == null)) {
            //if((1-3-09查当前就职记录是否部门行政主管.出参 值不等于空  and 1-3-09查当前就职记录是否部门党团主管.出参 值等于空 ))  48750

//ModelCode: receptionService
            QueryReceiveFieldDetailRespDto receptionServiceRes = null;
            QueryReceiveFieldDetailReqDto receptionServiceReq = new QueryReceiveFieldDetailReqDto();
            receptionServiceReq.setTureOrFalse("TRUE");//sourceId:1129939_1_48751

            /*M1-约定为是[3715]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq.getTureOrFalse(), "D1执行分析是否行政主管(公共)-M1-约定为是-是否不能为空", false);
            receptionServiceRes = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq);


//ModelCode: receptionService
            QueryReceiveFieldDetailRespDto receptionServiceRes_2 = null;
            QueryReceiveFieldDetailReqDto receptionServiceReq_1 = new QueryReceiveFieldDetailReqDto();
            if (receptionServiceRes != null) {
                receptionServiceReq_1.setTureOrFalse(receptionServiceRes.getTureOrFalse());//SimpleFieldAssign//sourceId:1129942_1_48752
            }

            /*M1接收上文出参字段值[3715]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_1.getTureOrFalse(), "D1执行分析是否行政主管(公共)-M1接收上文出参字段值-是否不能为空", false);
            receptionServiceRes_2 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_1);


            receptionServiceRes_3 = receptionServiceRes_2;
        } else if ((dept == null && dept_2 != null) || (dept == null && dept_2 == null)) {
            //elseif((1-3-09查当前就职记录是否部门行政主管.出参 值等于空  and 1-3-09查当前就职记录是否部门党团主管.出参 值不等于空 ) or (1-3-09查当前就职记录是否部门行政主管.出参 值等于空  and 1-3-09查当前就职记录是否部门党团主管.出参 值等于空 ))  48753

//ModelCode: receptionService
            QueryReceiveFieldDetailRespDto receptionServiceRes_4 = null;
            QueryReceiveFieldDetailReqDto receptionServiceReq_2 = new QueryReceiveFieldDetailReqDto();
            receptionServiceReq_2.setTureOrFalse("FALSE");//sourceId:1129937_1_48754

            /*M1约定为否[3715]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_2.getTureOrFalse(), "D1执行分析是否行政主管(公共)-M1约定为否-是否不能为空", false);
            receptionServiceRes_4 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_2);


//ModelCode: receptionService
            QueryReceiveFieldDetailRespDto receptionServiceRes_6 = null;
            QueryReceiveFieldDetailReqDto receptionServiceReq_3 = new QueryReceiveFieldDetailReqDto();
            if (receptionServiceRes_4 != null) {
                receptionServiceReq_3.setTureOrFalse(receptionServiceRes_4.getTureOrFalse());//SimpleFieldAssign//sourceId:1129942_1_48755
            }

            /*M1接收上文出参字段值[3715]  用于特殊方法接收上游入参。 */
            Assert.isNull(receptionServiceReq_3.getTureOrFalse(), "D1执行分析是否行政主管(公共)-M1接收上文出参字段值-是否不能为空", false);
            receptionServiceRes_6 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_3);


            receptionServiceRes_3 = receptionServiceRes_6;
        }
        ImplementAnalyseIsXzDirectorComRespDto retData = new ImplementAnalyseIsXzDirectorComRespDto();
        if (receptionServiceRes_3 != null) {
            retData.setIsXzDirector(receptionServiceRes_3.getTureOrFalse());//SimpleFieldAssign//sourceId:1129943_1
        }


        return retData;
    }

    /**
     * D1执行按条件查部门正副职(公共)[7536]
     * gen by moon at 10/15/2023, 3:23:25 AM
     */
    @Trace(operationName = "D1执行按条件查部门正副职(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementAccConditionQueryDeptDeputyComRespDto implementAccConditionQueryDeptDeputyCom(ImplementAccConditionQueryDeptDeputyComReqDto reqDto) {


        QueryReceiveFieldDetailRespDto receptionServiceRes_1 = null;
        if ((reqDto != null && reqDto.getDeptDeputyCondition() != null && reqDto.getDeptDeputyCondition().equals("All") || reqDto != null && reqDto.getDeptDeputyCondition() != null && reqDto.getDeptDeputyCondition().equals("PRINCIPAL_DEPUTY"))) {
            //if((D1执行按条件查部门正副职(公共).部门管理者获取条件 等于 全部 or D1执行按条件查部门正副职(公共).部门管理者获取条件 等于 正副职))  50080

            QueryDeputyInductionRecordListComRespDto queryDeputyInductionRecordListComRespDto = null;
            QueryDeputyInductionRecordListComReqDto queryDeputyInductionRecordListComReqDto = new QueryDeputyInductionRecordListComReqDto();
            queryDeputyInductionRecordListComReqDto.setIsTransaction("FALSE");//sourceId:1175641_1_50081
            if (reqDto != null) {
                queryDeputyInductionRecordListComReqDto.setEntityId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1175640_1_50081
            }

            /*D1-3查正副职就职记录列表(公共)[4851]   */
            Assert.isNull(queryDeputyInductionRecordListComReqDto.getEntityId(), "D1执行按条件查部门正副职(公共)-D1-3查正副职就职记录列表(公共)-就职单位对象实例ID不能为空", false);
            Assert.isNull(queryDeputyInductionRecordListComReqDto.getIsTransaction(), "D1执行按条件查部门正副职(公共)-D1-3查正副职就职记录列表(公共)-是否异动不能为空", false);
            queryDeputyInductionRecordListComRespDto = queryDeputyInductionRecordListCom(queryDeputyInductionRecordListComReqDto)/*vcase invoke 同服务,同domain*/;


//ModelCode: receptionService
            QueryReceiveFieldDetailRespDto receptionServiceRes = null;
            if (queryDeputyInductionRecordListComRespDto != null) {
                QueryReceiveFieldDetailReqDto receptionServiceReq = new QueryReceiveFieldDetailReqDto();
                if (queryDeputyInductionRecordListComRespDto != null && queryDeputyInductionRecordListComRespDto.getOrgInductionRecordList() != null && !CollectionUtil.isEmpty(queryDeputyInductionRecordListComRespDto.getOrgInductionRecordList())) {
                    receptionServiceReq.setOrgInductionRecordList(queryDeputyInductionRecordListComRespDto.getOrgInductionRecordList().stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1175877_1_50084
                }

                /*M1接收部门正副职数据集出参[3715]  用于特殊方法接收上游入参。 */

                receptionServiceRes = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq);


                receptionServiceRes_1 = receptionServiceRes;
            }
        } else if ((reqDto != null && reqDto.getDeptDeputyCondition() != null && reqDto.getDeptDeputyCondition().equals("PRINCIPAL"))) {
            //elseif(D1执行按条件查部门正副职(公共).部门管理者获取条件 等于 正职)  50082

            List<InductionRecord> listInductionRecord = new ArrayList<>();
            QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
            queryInductionRecordListReq.setPositionType("PRINCIPAL");//sourceId:1175681_1_50083
            queryInductionRecordListReq.setIsTransaction("FALSE");//sourceId:1175682_1_50083
            queryInductionRecordListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1175683_1_50083
            queryInductionRecordListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1175684_1_50083
            if (reqDto != null) {
                queryInductionRecordListReq.setEntityId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1175680_1_50083
            }

            /*1-3-13查部门正职就职记录列表[166]   */
            Assert.isNull(queryInductionRecordListReq.getEntityId(), "D1执行按条件查部门正副职(公共)-1-3-13查部门正职就职记录列表-就职单位对象实例ID不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getPositionType(), "D1执行按条件查部门正副职(公共)-1-3-13查部门正职就职记录列表-职务性质不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getIsTransaction(), "D1执行按条件查部门正副职(公共)-1-3-13查部门正职就职记录列表-是否异动不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getSubjectLifeCycle(), "D1执行按条件查部门正副职(公共)-1-3-13查部门正职就职记录列表-主体生命周期不能为空", false);
            Assert.isNull(queryInductionRecordListReq.getSpaceId(), "D1执行按条件查部门正副职(公共)-1-3-13查部门正职就职记录列表-创建于空间ID不能为空", false);
            listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


//ModelCode: receptionService
            QueryReceiveFieldDetailRespDto receptionServiceRes_2 = null;
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
                QueryReceiveFieldDetailReqDto receptionServiceReq_1 = new QueryReceiveFieldDetailReqDto();
                if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                    receptionServiceReq_1.setOrgInductionRecordList(listInductionRecord.stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1175877_1_50085
                }

                /*M1接收部门正副职数据集出参[3715]  用于特殊方法接收上游入参。 */

                receptionServiceRes_2 = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq_1);


                receptionServiceRes_1 = receptionServiceRes_2;
            }
        }
        ImplementAccConditionQueryDeptDeputyComRespDto retData = new ImplementAccConditionQueryDeptDeputyComRespDto();
        if (receptionServiceRes_1 != null) {
            retData.setOrgInductionRecordList(receptionServiceRes_1.getOrgInductionRecordList().stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1175880_1
        }


        return retData;
    }

    /**
     * D1查询就职的部门详情(公共)[7829]
     * gen by moon at 4/4/2024, 9:55:09 AM
     */
    @Trace(operationName = "D1查询就职的部门详情(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryInductionDeptDetailComRespDto queryInductionDeptDetailCom(QueryInductionDeptDetailComReqDto reqDto) {


        InductionRecord inductionRecord_1 = null;
//步骤0: 1-3-13查询就职记录详情 - queryinductionRecordDetail
        InductionRecord inductionRecord = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        if (reqDto != null) {
            queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1270104_1
            queryinductionRecordDetailReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:1315425_1
            queryinductionRecordDetailReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1491632_1
            queryinductionRecordDetailReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1402926_1
            queryinductionRecordDetailReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1403652_1
            queryinductionRecordDetailReq.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:1560179_1
            queryinductionRecordDetailReq.setIsMainInduction(reqDto.getIsMainInduction());//SimpleFieldAssign//sourceId:1402940_1
            queryinductionRecordDetailReq.setIsTransaction(reqDto.getIsTransaction());//SimpleFieldAssign//sourceId:1402941_1
            queryinductionRecordDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1402942_1
            queryinductionRecordDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1270105_1
        }

        /*1-3-13查询就职记录详情[165]   */
        Assert.isNull(queryinductionRecordDetailReq.getSpaceId(), "D1查询就职的部门详情(公共)-1-3-13查询就职记录详情-创建于空间ID不能为空", false);
        inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        inductionRecord_1 = inductionRecord;

        QueryInductionDeptDetailComRespDto retData = new QueryInductionDeptDetailComRespDto();
        if (inductionRecord_1 != null) {
            retData.setInductionRecordId(inductionRecord_1.getInductionRecordId());//SimpleFieldAssign//sourceId:1270124_1
            retData.setOriginalRoleMemberId(inductionRecord_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1270126_1
            retData.setUserId(inductionRecord_1.getUserId());//SimpleFieldAssign//sourceId:1270127_1
            retData.setFirstLetter(inductionRecord_1.getFirstLetter());//SimpleFieldAssign//sourceId:1270128_1
            retData.setPositionType(inductionRecord_1.getPositionType());//SimpleFieldAssign//sourceId:1300360_1
            retData.setInductionUnitTypeCode(inductionRecord_1.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:1270125_1
            retData.setEntityId(inductionRecord_1.getEntityId());//SimpleFieldAssign//sourceId:1270131_1
            retData.setDeptShortName(inductionRecord_1.getDeptShortName());//SimpleFieldAssign//sourceId:1270132_1
            retData.setPrimaryDeptId(inductionRecord_1.getPrimaryDeptId());//SimpleFieldAssign//sourceId:1695732_1
            retData.setSpaceId(inductionRecord_1.getSpaceId());//SimpleFieldAssign//sourceId:1524655_1
            retData.setAppId(inductionRecord_1.getAppId());//SimpleFieldAssign//sourceId:1524656_1
        }


        return retData;
    }

    /**
     * D1批量查询就职的部门(公共)[7891]
     * gen by moon at 11/11/2023, 1:46:42 AM
     */
    @Trace(operationName = "D1批量查询就职的部门(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryInductionDeptComRespDto batchQueryInductionDeptCom(BatchQueryInductionDeptComReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
//步骤0: 1-3-13批量查询就职的部门 - batchQueryInductionDept
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        BatchQueryInductionDeptReq batchQueryInductionDeptReq = new BatchQueryInductionDeptReq();
        if (reqDto != null) {
            batchQueryInductionDeptReq.setOrgInductionRecordList(reqDto.getOrgInductionRecordList());//list-field-assign//sourceId:1288113_1
            batchQueryInductionDeptReq.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1288114_1
            batchQueryInductionDeptReq.setIsTransaction(reqDto.getIsTransaction());//SimpleFieldAssign//sourceId:1288115_1
            batchQueryInductionDeptReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1288116_1
            batchQueryInductionDeptReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1288117_1
        }

        /*1-3-13批量查询就职的部门[7892]   */
        Assert.isNull(batchQueryInductionDeptReq.getSpaceId(), "D1批量查询就职的部门(公共)-1-3-13批量查询就职的部门-创建于空间ID不能为空", false);
        listInductionRecord = mInductionRecordService.batchQueryInductionDept(batchQueryInductionDeptReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

        BatchQueryInductionDeptComRespDto retData = new BatchQueryInductionDeptComRespDto();
        retData.setOrgInductionRecordList(listInductionRecord_1.stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1289036_1


        return retData;
    }

    /**
     * D1-3查直属就职记录列表(公共)[8057]
     * gen by moon at 12/23/2023, 11:10:38 PM
     */
    @Trace(operationName = "D1-3查直属就职记录列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryDirectInductionRecordListComRespDto queryDirectInductionRecordListCom(QueryDirectInductionRecordListComReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
//步骤0: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        if (reqDto != null) {
            queryInductionRecordListReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:1438374_1
            queryInductionRecordListReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1366550_1
            queryInductionRecordListReq.setOrganizationId(reqDto.getOrganizationId());//SimpleFieldAssign//sourceId:1436177_1
            queryInductionRecordListReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1366551_1
            queryInductionRecordListReq.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:1366552_1
            queryInductionRecordListReq.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:1366553_1
            queryInductionRecordListReq.setIsMainInduction(reqDto.getIsMainInduction());//SimpleFieldAssign//sourceId:1366554_1
            queryInductionRecordListReq.setIsTransaction(reqDto.getIsTransaction());//SimpleFieldAssign//sourceId:1366555_1
            queryInductionRecordListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1366556_1
            queryInductionRecordListReq.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1366557_1
            queryInductionRecordListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1366558_1
        }

        /*1-3-13查询就职记录列表[166]   */
        Assert.isNull(queryInductionRecordListReq.getSpaceId(), "D1-3查直属就职记录列表(公共)-1-3-13查询就职记录列表-创建于空间ID不能为空", false);
        listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

        QueryDirectInductionRecordListComRespDto retData = new QueryDirectInductionRecordListComRespDto();
        retData.setOrgInductionRecordList(listInductionRecord_1.stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1366569_1


        return retData;
    }

    /**
     * D1批量查询就职记录快照(公共)[8097]
     * gen by moon at 12/6/2023, 5:02:04 PM
     */
    @Trace(operationName = "D1批量查询就职记录快照(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public BatchQueryInductionRecordSnapComRespDto batchQueryInductionRecordSnapCom(BatchQueryInductionRecordSnapComReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
//步骤0: 1-3-13批量查询就职记录快照 - batchQueryInductionRecordSnap
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        BatchQueryInductionRecordSnapReq batchQueryInductionRecordSnapReq = new BatchQueryInductionRecordSnapReq();
        batchQueryInductionRecordSnapReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1391339_1
        if (reqDto != null) {
            batchQueryInductionRecordSnapReq.setOrgInductionRecordList(reqDto.getOrgInductionRecordList());//list-field-assign//sourceId:1391337_1
            batchQueryInductionRecordSnapReq.setIsEditing(reqDto.getIsEditing());//SimpleFieldAssign//sourceId:1391338_1
        }

        /*1-3-13批量查询就职记录快照[8098]   */
        Assert.isNull(batchQueryInductionRecordSnapReq.getSpaceId(), "D1批量查询就职记录快照(公共)-1-3-13批量查询就职记录快照-创建于空间ID不能为空", false);
        listInductionRecord = mInductionRecordService.batchQueryInductionRecordSnap(batchQueryInductionRecordSnapReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

        BatchQueryInductionRecordSnapComRespDto retData = new BatchQueryInductionRecordSnapComRespDto();
        retData.setOrgInductionRecordList(listInductionRecord_1.stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1391343_1


        return retData;
    }

    /**
     * D1-3查询就职记录详情(公共)(边界)[1340]
     * gen by moon at 1/21/2024, 6:13:51 PM
     */
    @Trace(operationName = "D1-3查询就职记录详情(公共)(边界)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryInductionRecordDetailComBorderRespDto queryInductionRecordDetailComBorder(QueryInductionRecordDetailComBorderReqDto reqDto) {


        InductionRecord inductionRecord_1 = null;
        OriginalRoleMemberInfo originalRoleMemberInfo_1 = null;
        Userinfo userinfo_1 = null;
        Users users_1 = null;
//步骤0: 1-3-13查询就职记录详情 - queryinductionRecordDetail
        InductionRecord inductionRecord = null;
        QueryinductionRecordDetailReq queryinductionRecordDetailReq = new QueryinductionRecordDetailReq();
        if (reqDto != null) {
            queryinductionRecordDetailReq.setInductionRecordId(reqDto.getInductionRecordId());//SimpleFieldAssign//sourceId:72721_1
            queryinductionRecordDetailReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:31158_1
            queryinductionRecordDetailReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1493971_1
            queryinductionRecordDetailReq.setPositionType(reqDto.getPositionType());//SimpleFieldAssign//sourceId:1493973_1
            queryinductionRecordDetailReq.setIsMainInduction(reqDto.getIsMainInduction());//SimpleFieldAssign//sourceId:31176_1
            queryinductionRecordDetailReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:31163_1
            queryinductionRecordDetailReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:31213_1
        }

        /*1-3-13查询就职记录详情[165]   */

        inductionRecord = mInductionRecordService.queryinductionRecordDetail(queryinductionRecordDetailReq)/*vcase invoke 本地 method 方法调用;*/;


        inductionRecord_1 = inductionRecord;

//步骤1: 1-2-10查询身份人员资料详情 - queryBeginMembInfoDetail
        OriginalRoleMemberInfo originalRoleMemberInfo = null;
        if (inductionRecord != null) {
            QueryBeginMembInfoDetailReq queryBeginMembInfoDetailReq = new QueryBeginMembInfoDetailReq();
            if (inductionRecord != null) {
                queryBeginMembInfoDetailReq.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:94120_1
                queryBeginMembInfoDetailReq.setSpaceId(inductionRecord.getSpaceId());//SimpleFieldAssign//sourceId:94124_1
            }

            /*1-2-10查询身份人员资料详情[116]   */
            Assert.isNull(queryBeginMembInfoDetailReq.getOriginalRoleMemberId(), "D1-3查询就职记录详情(公共)(边界)-1-2-10查询身份人员资料详情-身份人员ID不能为空", false);
            Assert.isNull(queryBeginMembInfoDetailReq.getSpaceId(), "D1-3查询就职记录详情(公共)(边界)-1-2-10查询身份人员资料详情-创建于空间ID不能为空", false);
            originalRoleMemberInfo = mOriginalRoleMemberInfoService.queryBeginMembInfoDetail(queryBeginMembInfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            originalRoleMemberInfo_1 = originalRoleMemberInfo;
        }

//步骤2: 1-2-02查询个人资料详情 - queryUserinfoDetail
        Userinfo userinfo = null;
        if (inductionRecord != null) {
            QueryUserinfoDetailReq queryUserinfoDetailReq = new QueryUserinfoDetailReq();
            if (inductionRecord != null) {
                queryUserinfoDetailReq.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:94184_1
            }

            /*1-2-02查询个人资料详情[155]   */
            Assert.isNull(queryUserinfoDetailReq.getUserId(), "D1-3查询就职记录详情(公共)(边界)-1-2-02查询个人资料详情-账号不能为空", false);
            userinfo = mUserinfoService.queryUserinfoDetail(queryUserinfoDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            userinfo_1 = userinfo;
        }

//步骤3: 1-2-01查询个人账号详情 - queryUserDetail
        Users users = null;
        if (inductionRecord != null) {
            QueryUserDetailReq queryUserDetailReq = new QueryUserDetailReq();
            if (inductionRecord != null) {
                queryUserDetailReq.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:1465755_1
            }

            /*1-2-01查询个人账号详情[286]   */
            Assert.isNull(queryUserDetailReq.getUserId(), "D1-3查询就职记录详情(公共)(边界)-1-2-01查询个人账号详情-个人账号不能为空", false);
            users = mUsersService.queryUserDetail(queryUserDetailReq)/*vcase invoke 本地 method 方法调用;*/;


            users_1 = users;
        }

        QueryInductionRecordDetailComBorderRespDto retData = new QueryInductionRecordDetailComBorderRespDto();
        if (inductionRecord_1 != null) {
            retData.setInductionRecordId(inductionRecord_1.getInductionRecordId());//SimpleFieldAssign//sourceId:31183_1
            retData.setOriginalRoleMemberId(inductionRecord_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:31186_1
            retData.setUserId(inductionRecord_1.getUserId());//SimpleFieldAssign//sourceId:31187_1
            retData.setOrganizationId(inductionRecord_1.getOrganizationId());//SimpleFieldAssign//sourceId:31188_1
            retData.setEntityId(inductionRecord_1.getEntityId());//SimpleFieldAssign//sourceId:31185_1
            retData.setDeptShortName(inductionRecord_1.getDeptShortName());//SimpleFieldAssign//sourceId:1449788_1
            retData.setSpaceId(inductionRecord_1.getSpaceId());//SimpleFieldAssign//sourceId:1450002_1
            retData.setAppId(inductionRecord_1.getAppId());//SimpleFieldAssign//sourceId:1450003_1
        }
        if (userinfo_1 != null) {
            retData.setUserFace(userinfo_1.getUserFace());//SimpleFieldAssign//sourceId:94192_1
            retData.setIdCardName(userinfo_1.getIdCardName());//SimpleFieldAssign//sourceId:94190_1
            retData.setNickName(userinfo_1.getNickName());//SimpleFieldAssign//sourceId:94191_1
        }
        if (originalRoleMemberInfo_1 != null) {
            retData.setRoleMemberCode(originalRoleMemberInfo_1.getRoleMemberCode());//SimpleFieldAssign//sourceId:94139_1
            retData.setPositionIdName(originalRoleMemberInfo_1.getPositionIdName());//SimpleFieldAssign//sourceId:94140_1
        }
        if (users_1 != null) {
            retData.setPhone(users_1.getPhone());//SimpleFieldAssign//sourceId:1465785_1
        }


        return retData;
    }

    /**
     * D1执行批量部门查就职记录(公共)[8523]
     * gen by moon at 2/23/2024, 1:26:53 AM
     */
    @Trace(operationName = "D1执行批量部门查就职记录(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ImplementDeptInductionComRespDto implementDeptInductionCom(ImplementDeptInductionComReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
//步骤0: 1-3-13执行批量部门查就职记录 - implementDeptInduction
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        ImplementDeptInductionReq implementDeptInductionReq = new ImplementDeptInductionReq();
        if (reqDto != null) {
            implementDeptInductionReq.setDeptMatchInductionList(reqDto.getDeptMatchInductionList());//list-field-assign//sourceId:1558488_1
            implementDeptInductionReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1558489_1
            implementDeptInductionReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1558490_1
        }

        /*1-3-13执行批量部门查就职记录[8524]   */
        Assert.isNull(implementDeptInductionReq.getSubjectLifeCycle(), "D1执行批量部门查就职记录(公共)-1-3-13执行批量部门查就职记录-主体生命周期不能为空", false);
        Assert.isNull(implementDeptInductionReq.getSpaceId(), "D1执行批量部门查就职记录(公共)-1-3-13执行批量部门查就职记录-创建于空间ID不能为空", false);
        listInductionRecord = mInductionRecordService.implementDeptInduction(implementDeptInductionReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

        ImplementDeptInductionComRespDto retData = new ImplementDeptInductionComRespDto();
        retData.setDeptMatchInductionList(listInductionRecord_1.stream().map(item -> BeanUtil.toBean(item, DeptMatchInductionDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1558495_1


        return retData;
    }

    /**
     * D1查询部门下人员列表(公共)[8843]
     * gen by moon at 3/30/2024, 12:45:28 AM
     */
    @Trace(operationName = "D1查询部门下人员列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryDeptPersonListComRespDto queryDeptPersonListCom(QueryDeptPersonListComReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
        List<Userinfo> listUserinfo_1 = new ArrayList<>();
//步骤0: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        queryInductionRecordListReq.setIsArchive("FALSE");//sourceId:1661510_1
        if (reqDto != null) {
            queryInductionRecordListReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:1661508_1
            queryInductionRecordListReq.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1661509_1
            queryInductionRecordListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1661511_1
        }

        /*1-3-13查询就职记录列表[166]   */
        Assert.isNull(queryInductionRecordListReq.getInductionUnitTypeCode(), "D1查询部门下人员列表(公共)-1-3-13查询就职记录列表-就职单位类型实例不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getEntityId(), "D1查询部门下人员列表(公共)-1-3-13查询就职记录列表-就职单位对象实例ID不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getIsArchive(), "D1查询部门下人员列表(公共)-1-3-13查询就职记录列表-是否存档不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getSpaceId(), "D1查询部门下人员列表(公共)-1-3-13查询就职记录列表-创建于空间ID不能为空", false);
        listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

//步骤1: 1-2-02批量查询个人资料列表 - batchQueryUserinfoList
        List<Userinfo> listUserinfo = new ArrayList<>();
        if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord.size() > 0) {
            BatchQueryUserinfoListReq batchQueryUserinfoListReq = new BatchQueryUserinfoListReq();
            if (listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord) && listInductionRecord != null && !CollectionUtil.isEmpty(listInductionRecord)) {
                batchQueryUserinfoListReq.setUserList(listInductionRecord.stream().map(item -> item.getUserId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1661505_1
            }

            /*1-2-02批量查询个人资料列表[52]   */
            listUserinfo = mUserinfoService.batchQueryUserinfoList(batchQueryUserinfoListReq)/*vcase invoke 本地 method 方法调用;*/;


            listUserinfo_1 = listUserinfo;
        }

        QueryDeptPersonListComRespDto retData = new QueryDeptPersonListComRespDto();
        //数据集融合  MoreListToOneSource
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1) && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            for (InductionRecord inductionRecord : listInductionRecord_1) {
                OrgInductionRecordDto retElm = new OrgInductionRecordDto();
                retElm.setInductionRecordId(inductionRecord.getInductionRecordId());//SimpleFieldAssign//sourceId:320789_2
                retElm.setOriginalRoleMemberId(inductionRecord.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:320790_2
                retElm.setUserId(inductionRecord.getUserId());//SimpleFieldAssign//sourceId:320119_2
                retElm.setDeptShortName(inductionRecord.getDeptShortName());//SimpleFieldAssign//sourceId:320120_2
                retElm.setPositionIdName(inductionRecord.getPositionIdName());//SimpleFieldAssign//sourceId:320121_2
                retData.getOrgInductionRecordList().add(retElm);
                if (listUserinfo_1 != null && !CollectionUtil.isEmpty(listUserinfo_1)) {
                    for (Userinfo userinfo : listUserinfo_1) {
                        if (userinfo.getUserId().equals(inductionRecord.getUserId())) {
                            retElm.setIdCardName(userinfo.getIdCardName());//SimpleFieldAssign//sourceId:320122_2
                            retElm.setUserFace(userinfo.getUserFace());//SimpleFieldAssign//sourceId:320123_2
                        }
                    }
                }

            }
        }//sourceId:1661517_1


        return retData;
    }

    /**
     * D1查询就职的部门列表(公共)[9362]
     * gen by moon at 4/10/2024, 10:45:52 AM
     */
    @Trace(operationName = "D1查询就职的部门列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryInductionDeptListComRespDto queryInductionDeptListCom(QueryInductionDeptListComReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
//步骤0: 1-3-13查询就职的部门列表 - queryInductionDeptList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        QueryInductionDeptListReq queryInductionDeptListReq = new QueryInductionDeptListReq();
        if (reqDto != null) {
            queryInductionDeptListReq.setInductionUnitTypeCode(reqDto.getInductionUnitTypeCode());//SimpleFieldAssign//sourceId:1715069_1
            queryInductionDeptListReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1715070_1
            queryInductionDeptListReq.setIsTransaction(reqDto.getIsTransaction());//SimpleFieldAssign//sourceId:1715071_1
            queryInductionDeptListReq.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1715072_1
            queryInductionDeptListReq.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1715073_1
        }

        /*1-3-13查询就职的部门列表[9363]   */

        listInductionRecord = mInductionRecordService.queryInductionDeptList(queryInductionDeptListReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

        QueryInductionDeptListComRespDto retData = new QueryInductionDeptListComRespDto();
        retData.setOrgInductionRecordList(listInductionRecord_1.stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1715080_1


        return retData;
    }

    /**
     * D1获取基层向上汇报对象[9576]
     * gen by moon at 5/15/2024, 3:30:14 PM
     */
    @Trace(operationName = "D1获取基层向上汇报对象")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public ObtainBasicUpReportLeaderRespDto obtainBasicUpReportLeader(ObtainBasicUpReportLeaderReqDto reqDto) {


        QueryDeputyInductionRecordListComRespDto queryDeputyInductionRecordListComRespDto_1 = null;
//步骤0: M1-获取接收字段（特殊方法） - queryReceiveFieldDetail
        //ModelCode: receptionService
        QueryReceiveFieldDetailRespDto receptionServiceRes = null;
        QueryReceiveFieldDetailReqDto receptionServiceReq = new QueryReceiveFieldDetailReqDto();
        if (reqDto != null) {
            receptionServiceReq.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1798488_1
        }

        /*M1接收入参字段[3715]  用于特殊方法接收上游入参。 */
        Assert.isNull(receptionServiceReq.getDeptId(), "D1获取基层向上汇报对象-M1接收入参字段-部门ID不能为空", false);
        receptionServiceRes = nbInductionRecord.queryReceiveFieldDetail(receptionServiceReq);


//步骤1: 1-3-09查询部门详情 - queryDeptDetail
        Dept dept = null;
        QueryDeptDetailReq queryDeptDetailReq = new QueryDeptDetailReq();
        queryDeptDetailReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1798245_1
        if (reqDto != null) {
            queryDeptDetailReq.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1798244_1
        }

        /*1-3-09查询当前部门详情（用于获取一级部门ID)[218]   */
        Assert.isNull(queryDeptDetailReq.getDeptId(), "D1获取基层向上汇报对象-1-3-09查询当前部门详情（用于获取一级部门ID)-部门ID不能为空", false);
        Assert.isNull(queryDeptDetailReq.getSubjectLifeCycle(), "D1获取基层向上汇报对象-1-3-09查询当前部门详情（用于获取一级部门ID)-主体生命周期不能为空", false);
        dept = mDeptService.queryDeptDetail(queryDeptDetailReq)/*vcase invoke 本地 method 方法调用;*/;


//步骤2: D1-3查询正副职就职记录列表(公共) - queryDeputyInductionRecordListCom
        QueryDeputyInductionRecordListComRespDto queryDeputyInductionRecordListComRespDto = null;
        if (dept != null) {
            QueryDeputyInductionRecordListComReqDto queryDeputyInductionRecordListComReqDto = new QueryDeputyInductionRecordListComReqDto();
            queryDeputyInductionRecordListComReqDto.setInductionUnitTypeCode("DEPT");//sourceId:1798204_1
            queryDeputyInductionRecordListComReqDto.setIsTransaction("FALSE");//sourceId:1798206_1
            if (dept != null) {
                queryDeputyInductionRecordListComReqDto.setEntityId(dept.getParentDeptId());//SimpleFieldAssign//sourceId:1798205_1
            }

            /*D1-3查询正副职就职记录列表(公共)[4851]   */
            Assert.isNull(queryDeputyInductionRecordListComReqDto.getEntityId(), "D1获取基层向上汇报对象-D1-3查询正副职就职记录列表(公共)-就职单位对象实例ID不能为空", false);
            Assert.isNull(queryDeputyInductionRecordListComReqDto.getInductionUnitTypeCode(), "D1获取基层向上汇报对象-D1-3查询正副职就职记录列表(公共)-就职单位类型实例不能为空", false);
            Assert.isNull(queryDeputyInductionRecordListComReqDto.getIsTransaction(), "D1获取基层向上汇报对象-D1-3查询正副职就职记录列表(公共)-是否异动不能为空", false);
            queryDeputyInductionRecordListComRespDto = queryDeputyInductionRecordListCom(queryDeputyInductionRecordListComReqDto)/*vcase invoke 同服务,同domain*/;


            queryDeputyInductionRecordListComRespDto_1 = queryDeputyInductionRecordListComRespDto;
        }

        ObtainBasicUpReportLeaderRespDto retData = new ObtainBasicUpReportLeaderRespDto();
        if (queryDeputyInductionRecordListComRespDto_1 != null) {
            retData.setOrgInductionRecordList(queryDeputyInductionRecordListComRespDto_1.getOrgInductionRecordList().stream().map(item -> BeanUtil.toBean(item, OrgInductionRecordDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1798490_1
        }


        return retData;
    }

    /**
     * D1查询员工就职记录列表(公共)[9978]
     * gen by moon at 7/19/2024, 5:16:07 PM
     */
    @Trace(operationName = "D1查询员工就职记录列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryStaffInductionRecordListComRespDto queryStaffInductionRecordListCom(QueryStaffInductionRecordListComReqDto reqDto) {


        List<InductionRecord> listInductionRecord_1 = new ArrayList<>();
//步骤0: 1-3-13查询就职记录列表 - queryInductionRecordList
        List<InductionRecord> listInductionRecord = new ArrayList<>();
        QueryInductionRecordListReq queryInductionRecordListReq = new QueryInductionRecordListReq();
        queryInductionRecordListReq.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1938997_1
        queryInductionRecordListReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1938998_1
        if (reqDto != null) {
            queryInductionRecordListReq.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1938996_1
        }

        /*1-3-13查询就职记录列表[166]   */
        Assert.isNull(queryInductionRecordListReq.getOriginalRoleMemberId(), "D1查询员工就职记录列表(公共)-1-3-13查询就职记录列表-身份人员ID不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getSubjectLifeCycle(), "D1查询员工就职记录列表(公共)-1-3-13查询就职记录列表-主体生命周期不能为空", false);
        Assert.isNull(queryInductionRecordListReq.getSpaceId(), "D1查询员工就职记录列表(公共)-1-3-13查询就职记录列表-创建于空间ID不能为空", false);
        listInductionRecord = mInductionRecordService.queryInductionRecordList(queryInductionRecordListReq)/*vcase invoke 本地 method 方法调用;*/;


        listInductionRecord_1 = listInductionRecord;

        QueryStaffInductionRecordListComRespDto retData = new QueryStaffInductionRecordListComRespDto();
        if (listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1) && listInductionRecord_1 != null && !CollectionUtil.isEmpty(listInductionRecord_1)) {
            retData.setOrgInductionRecordList(listInductionRecord_1.stream().map(item -> item.getInductionRecordId())
                    .collect(Collectors.toList()));/*list-to-strings*///sourceId:1939001_1
        }


        return retData;
    }
    //
}